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
Describe the bug
Ampersand is acceptable in HTML text
To Reproduce
HTMLHint generates an error:
Special characters must be escaped : [ & ]. (spec-char-escape)
W3C Markup Validation Service no longer finds any issues with the uncoded &.
&
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Title & More</title> </head> <body> <p>Drag & Drop</p> </body> </html>
Expected behavior
No error
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
HTMLHint/src/core/rules/spec-char-escape.ts
Lines 9 to 10 in 21022c6
( \& ) is the cause of this issue, as it looks for space-&-space.
( \& )
space-&-space
Therefore, the following won't look for &
// TODO: improve use-cases for & const reSpecChar = /[<>]/g
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
Ampersand is acceptable in HTML text
To Reproduce
HTMLHint generates an error:
W3C Markup Validation Service no longer finds any issues with the uncoded
&
.Expected behavior
No error
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: