Sebastian
Sebastian

Reputation: 6057

Wrong IntelliJ warning about unescaped characters for xml <script> element

I have a XML file that looks like

<script>
    <foo>bar</foo>
</script>

This is no HTML and the the <script> tag has nothing to do with the HTML script tag. (Unlike this question)

But IntelliJ (Version 2016.2) wrongly displays warnigs about unescaped XML characters for the first bracket of the sub elements of <script>. Mistakes IntelliJ this for the HTML script tag? How can I prevent that?

The warnings appear regardless of the presence of an header like <?xml version="1.0" ?>.

Upvotes: 4

Views: 1810

Answers (1)

Tony Vincent
Tony Vincent

Reputation: 14282

This is a known bug see here .According to this thread you can try turning Inspections/HTML/Malformed content of <script> tag off.

Upvotes: 5

Related Questions