Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 68
SyntaxHighlighte... 51
Newsletters v4.03 114
Facebook Like Box 135
Newsletters v4.02 60
Metro 173
Facebook Connect 174
Shoutbox Panel 130
Redactor for PHP... 107
MI Floating Side... 109
Facebook Login/R... 156
Avatar Studio v2.03 180
Relationship Sta... 98
Sexual Orientati... 116
Fisherman 144
Popular Addons
iTheme2 5808
Arise 5808
User Control v1.23 4623
Event Calendar 4055
Photowidget panel 3889
Radio-Theme red2... 3360
Highslide Gallery 3315
CSS/JavaScript D... 3234
Facebook Connect... 2992
Dynamic Menu 2895
Slideshow Lightb... 2729
L-AMANT 2662
Enigma 2637
2Dark 2608
Black 2580
View Thread
Official Home of PHP-Fusion » General Addon and Modification Support » Ideas for Modifications and Requests
Who is here? 1 guest(s)
 Print Thread
replace links in output
mawe4585
i have a question about the replace_in_output function.

i wanna do something like that:

Download source  Code

replace_in_output("<!-- TEST_FLAG -->", "<a href='../index.php'>Test</a>");





But when i do this i get following error-message:

Parse error: syntax error, unexpected '/' in ......\xampp\htdocs\fusiontest\includes\output_handling_include.php(96) : eval()'d code on line 1

Merged on Apr 24 2012 at 21:07:19:
I fixed it by doing this:

Download source  Code

$repl = "<a href='../index.php'>Test</a>";
$repl = str_replace("'","\'",$repl);
replace_in_output("<!-- TEST_FLAG -->",$repl);





is there a replace function which automatically escapes all these signs?
Edited by mawe4585 on 24-04-2012 20:07
 
PolarFox
I guess, the bad symbol there is only '
 
http://unlogic.info
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
links Content Administration 4 10-04-2013 21:34
Site Links Question System Administration 6 02-01-2013 02:26
Email in links Content Administration 7 27-11-2012 18:16
Move Links Themes Support 1 15-11-2012 14:12
Hide Links Content Administration 3 13-11-2012 21:38
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue