Skip to content

Warning for <> chars inside scripts #2020

@tomasherceg

Description

@tomasherceg

Forum thread 356

Compilation Status Page gives me a warning when i use ‘<=’ check in pure javascript:

Test.dotvvm:

<body>
    <div class="container">
        {{value: Now}}
    </div>

<script>
    function AnyMethod() {
        var a = 10;
        var b = 20;
        if (a <= b) {
            console.log("a is less than or equal to b");
        } else {
            console.log("a is greater than b");
        }
    }
</script>

</body>
</html>

The warning message is:

'<' char is not allowed in normal text

If I use ‘<’ instead of '<=", no warning is generated.

‘<=’ seems to be crawled across the entire page. Perhaps you can prevent it from being crawled within the script block.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions