Welcome Guest, Not a member yet? Register   Sign In
Line breaks in javascript
#1

[eluser]richzilla[/eluser]
Hi all,
Im having trouble with line breaks messing up my javascript with unterminated string errors. The string in question is being pulled directly from the database and echo'd into my Javascript with php. Is there any way to echo line breaks out as "\n" instead of them being interpreted as line breaks?

Thanks


Messages In This Thread
Line breaks in javascript - by El Forum - 04-15-2010, 03:30 AM
Line breaks in javascript - by El Forum - 04-15-2010, 03:34 AM
Line breaks in javascript - by El Forum - 04-15-2010, 03:35 AM
Line breaks in javascript - by El Forum - 04-15-2010, 03:42 AM
Line breaks in javascript - by El Forum - 04-15-2010, 03:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB