[Solved] Using preg_replace_callback with a href |
In my preg_replace_callback I can allow some elements to be showing in preview using the preg_replace_callback
How ever when the user has typed in a link lets say <a href="http://www.example.com">Example</a> The preview will only put out <a href="http://www.example.com">Example Is there any way I can integrate this PHP Code: preg_replace("~[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]~","<a href=\"\\0\">\\0</a>", $string) Into the code below PHP Code: public function preview() {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
[Solved] Using preg_replace_callback with a href - by wolfgang1983 - 10-31-2016, 03:50 AM
RE: Using preg_replace_callback with a href - by InsiteFX - 10-31-2016, 06:34 AM
RE: Using preg_replace_callback with a href - by wolfgang1983 - 10-31-2016, 12:51 PM
RE: Using preg_replace_callback with a href - by InsiteFX - 10-31-2016, 02:46 PM
RE: Using preg_replace_callback with a href - by wolfgang1983 - 10-31-2016, 04:03 PM
RE: Using preg_replace_callback with a href - by wolfgang1983 - 11-01-2016, 01:00 AM
RE: Using preg_replace_callback with a href - by InsiteFX - 11-01-2016, 03:28 AM
RE: [Solved] Using preg_replace_callback with a href - by wolfgang1983 - 11-01-2016, 05:20 PM
|