Hi,
I'm using a javascript function that receives some html code that was included using php. It is not html in a php string but an html file with .php extension.
As the html code is sent as a parameter to the js function it can't contain carriage returns. The problem is that writing big blocks of html in a single line is terrible, I would like to have a function only to erase the carriage returns before sending the content.
Is there a source for such a function?
Thanks!