Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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" ?>.

like image 535
Sebastian Avatar asked Oct 23 '25 20:10

Sebastian


1 Answers

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

like image 184
Tony Vincent Avatar answered Oct 26 '25 17:10

Tony Vincent



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!