Jump to content

Close HTML-tags inside JS variables are cut?

Featured Replies

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?

That sounds like a bug.

Archived

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

Recently Browsing 0

  • No registered users viewing this page.