Did you know ... Search Documentation:
Pack weblog -- prolog/support/javascript_utils.pl
PublicShow source

6/29/2013 renamed to avoid colliding with library javascript

 javascript_friendly_html(+HTML, -FriendlyHTML)
Given termerized HTML, return an atom with the normal html in it, after removing any newlines and escaping single and double quotes.

It's fairly common to stuff html into a javascript string. This bit handles javascript's lack of heredoc syntax.