Skip to content

rule spec char escape

Hanxing Yang edited this page Jul 10, 2016 · 1 revision

name

spec-char-escape

description

Special characters (<, >) in text content must be escaped. If found not, it reports.

sample

<!-- Bad -->
<div>test<</div>
<div>test></div>
<div>test>test<</div>

<!-- Good -->
<div>test&lt;</div>
<script type="text/template">
    <div>test</div>
</script>
<style>
    body > a {
        color: inherit;
    }
</style>

code

  • 033

    Unescaped special characters found.

config

  • true

    Do check / format.

  • false

    Do not check / format.

format support

No.