I got a little problem here.
The thing is that in my database I got a text, and then I print it onto the screen and the code goes like:
<p>Text 1</p>
<p>Text 2</p>
Thats the output in HTML cause I use tinyMCE plugin. Goes well so far. The thing is, that I want to put it into a javascript variable (like: onclick="my_function(the_text_above)")
, but the output code makes a linebreak and that goes into an illegal token when the function runs.
Hope you can lend me a hand with this issue I encountered.