Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Basically I am pulling a large string from a database for example:
"This is my string I am getting from the database
It also contains new line characters"
See the list of (other)
Ryan, what language are you using to get the data from the database and write the JS?
If you are in Perl you can easily fix this with a couple of regex's...
## To remove UNIX/MAC newline charaters... s/\r//g;
## To change linebreaks into actual linebreak escapes...
You could also use this for other escape characters.