Jump to content

Close HTML-tags inside JS variables are cut?


motomac

Recommended Posts

Posted

I put simple JS code into a hook:

<script type='text/javascript'>
  var a = "<div>";
  var b = "</div>";
</script>

But in the page it renders like:

<script type="text/javascript">
  var a = "<div>";
  var b = "";
</script>

Why?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...