-
Javascript, line breaks, single quotes
If you are going to assign a string with line breaks into a variable with single quotes, because maybe it contains double quotes then at the end of each line before a line break escape it like the following code with an \
<script>
var new_html = ‘\
<div id=”hello”>\
<p>This is the new data</p>\
</div>\
’;
</script>
This should help you with any issues you have.


