We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is my html:
<span>></span>
After parse and serialize by parse5:
<span>></span>
Here is escapeString method:
escapeString
Serializer.escapeString = function (str, attrMode) { str = str .replace(AMP_REGEX, '&') .replace(NBSP_REGEX, ' '); if (attrMode) str = str.replace(DOUBLE_QUOTE_REGEX, '"'); else { str = str .replace(LT_REGEX, '<') .replace(GT_REGEX, '>'); } return str; };
How can I disable this function?
The text was updated successfully, but these errors were encountered:
Why would you like to disable it? What's your scenario?
Sorry, something went wrong.
@inikulin I am using parse5 process .cshtml docs aka Razor which is template language of .NET MVC framework.
.cshtml
In Razor => is something else meaning.After process of parse5 the => will be replaced into => which lead to syntax error.
=>
=>
So I am asking for preventing from parse5 replacing html entities.
If razor is not a subset of HTML syntax, you shouldn't use HTML parser for it. Use razor parser instead
No branches or pull requests
Here is my html:
After parse and serialize by parse5:
Here is
escapeString
method:How can I disable this function?
The text was updated successfully, but these errors were encountered: