Stickbread
Programmer
I'm using php to generate a javascript script... (very ugly).
In fact, this quest
I've downloaded the html source of a webpage with php, and now I would like to display that page using javascript.
I've wrapped each line in a document.write(), but I'm having difficulty with quotation marks, apostraphies, etc...
Is there any quick way to add all of the appropriate escape characters so that a block of html will be display correctly? PHP's addslashes seems to be missing a few things for javascript code.
In fact, this quest
I've downloaded the html source of a webpage with php, and now I would like to display that page using javascript.
I've wrapped each line in a document.write(), but I'm having difficulty with quotation marks, apostraphies, etc...
Is there any quick way to add all of the appropriate escape characters so that a block of html will be display correctly? PHP's addslashes seems to be missing a few things for javascript code.