You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the code uses a simple regex to parse out the <head> this regex is insufficient for a few reasons.
Fails to extract content in an implied <head> element.
Fails to handle cases like </head thisisignored> to close the head.
HTML5 is a ugly mess but it is best to properly handle it. This means using a proper parser based on the doctype declaration because you can't parse HTML with regex.
The text was updated successfully, but these errors were encountered:
Right now the code uses a simple regex to parse out the
<head>
this regex is insufficient for a few reasons.<head>
element.</head thisisignored>
to close the head.HTML5 is a ugly mess but it is best to properly handle it. This means using a proper parser based on the doctype declaration because you can't parse HTML with regex.
The text was updated successfully, but these errors were encountered: