Welcome Guest, Not a member yet? Register   Sign In
Text escaping / unescaping help
#6

[eluser]Sceneshift[/eluser]
Raaaaar this is driving me mad Smile

Entry looks like this in my database:

"line1\n\nline2" it's mysql_real_escape_string'd.

Then using <?=nl2br(htmlentities($text))?> I get:

"line1\n\nline2"

What am I doing wrong? Sorry guys.


Messages In This Thread
Text escaping / unescaping help - by El Forum - 06-03-2008, 04:45 PM
Text escaping / unescaping help - by El Forum - 06-03-2008, 05:30 PM
Text escaping / unescaping help - by El Forum - 06-04-2008, 01:17 AM
Text escaping / unescaping help - by El Forum - 06-04-2008, 01:23 AM
Text escaping / unescaping help - by El Forum - 06-04-2008, 02:01 AM
Text escaping / unescaping help - by El Forum - 06-04-2008, 02:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB