I am using media-upload.php?type=image&tab=library
script to add an image to a post with a description that contains html. This php script uses the javascript function window.send_to_editor
to send the html to the page. This allows you to insert image html into a post.
The problem is, if you try to add an image with a description that has text broken up on multiple lines(html) you will get a unterminated string literal
error from javascript b/c the string is not converted correctly before it is used.
Is there anyway around this?
From comments: