Inspectopedia Help

Malformed content of 'script' tag

Reports contents of script tags that are invalid XML.

Example:

<script type="text/javascript"> console.log('<'); </script>

After the quick-fix is applied:

<script type="text/javascript"> console.log('&lt;'); </script>

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

CheckValidXmlInScriptTagBody
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | HTML

Last modified: 27 August 2024