I need to create a variable storing dynamically generated HTML content. The html content in the String returned from PHP might have single or double quotes.
html_content=<?=$string;?>;
The string may have double quotes like this:
<span id="something">something else</span>
or single quotes like this:
<span id='something'>something else</span>
Then, how can I correctly save the string in javascript? I can't use single quotes or double quotes.