Wrong detect of Parsing error: invalid-first-character-of-tag-name in expression.

Wrong detect of Parsing error: invalid-first-character-of-tag-name in expression.

Thank you for the report.

This is a correct error as according to HTML spec:

To make valid HTML, you should use &lt; instead of the <.
Or you can ignore the error by the option of vue/no-parsing-error rule: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-parsing-error.md#wrench-options

 

用&lt来表示<,使用了xml转义

https://owasp.org/www-community/password-special-characters

" !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"

转义之后变成下面这个样子https://coderstoolbox.net/string/#!encoding=xml&action=encode&charset=us_ascii

&quot; !&quot;#$%&amp;&#39;()*+,-./:;&lt;=&gt;?@[\]^_`{|}~&quot;

 

posted @ 2021-11-02 15:50  ChuckLu  阅读(90)  评论(0编辑  收藏  举报