I have a text in $faq['content']; and when i echo $faq['content'] this error is displayed in browser console:
' ' string literal contains an unescaped line break Error
My code:
<script>
setTimeout(function () {
$(".opencxbody").html('<div style="max-height:400px; overflow-y: scroll;"> <?php echo $faq['content']; ?></div>');
}, 100);
</script>