As it says in the title, I can not do the following:
<html>
......
<script>
var texto = " <?php echo $html; ?> ";
</script>
</body>
</html>
I do not know how to make the html content that is in the PHP variable load in the javascript variable. Generate a level error in JS.
I guess it must be because maybe some of these possible expressions come into conflict when trying to print it. var text=" <html><p class = "class_one"></p></html>
"; already with that example, I should give a problem to the client, but I do not know how to make that assignment.