SyntaxFix
Write A Post
Hire A Developer
Questions
You're missing quotes around your string:
... var htmlString="<?php echo $htmlString; ?>"; ...