Skip to content

Fix testing URLs with HTML entities

Latest
Compare
Choose a tag to compare
@fulldecent fulldecent released this 20 Dec 21:45
· 6 commits to main since this release
f42831b

Previously testing a URL like this:

<a href="https://----.example.com?a=b&amp;c=d">This server does not exist</a>

Was a problem because the &amp; was not properly understood.

This is a partial solution just for &amp;, which is the most common HTML entity you will use. A complete solution will require adding a dependency or updating html-validate.

Discussion: https://gitlab.com/html-validate/html-validate/-/commit/560fa72ae6be0a065a358d9f6b356ce39c7b4e81