Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Mangled javascript if contains closing tags in strings #3

Open
unirgy opened this issue Apr 11, 2012 · 0 comments
Open

Mangled javascript if contains closing tags in strings #3

unirgy opened this issue Apr 11, 2012 · 0 comments

Comments

@unirgy
Copy link

unirgy commented Apr 11, 2012

What steps will reproduce the problem?

  1. Process HTML that contains <script> tag with HTML in strings. Ex:
<div>
<script>
  var html = [
    '<div>',
    '<select>',
    '</select>',
    '</div>',
  ];
</script>
</div>

What is the expected output?
I expect the JS code within <script> tag not to be changed.

What do you see instead?
Some closing tags like </select> or </option> are fully removed, and some, like </div> are changed to close open tags outside of <script>

What version of the product are you using? On what operating system?
phpQuery 0.9.5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant