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
The input I'm using is essentially this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:rn="http://schemas.rightnow.com/crm/document"> <head> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body style="FONT-FAMILY: Segoe UI, Verdana, sans-serif"> <div> <div id="checksum" align="right"> <span style="font-size: 1pt"> [---002:000651:00385---] </span> </div> </div> </body> </html>
When calling linkifyHtml on it, the content of the HTML gets eaten up into a comment like so:
linkifyHtml
<!---02:000651:00385---] </span> </div> </div> </body> </html>-->
I'm not sure what's causing this but it seems to be related to the <!DOCTYPE> tag. Here is a more minimal example:
<!DOCTYPE>
<!DOCTYPE>[--hello
gets converted to
<!--hello-->
I've already tried adding doctype and !doctype to ignoreTags but this doesn't seem to help.
doctype
!doctype
ignoreTags
The text was updated successfully, but these errors were encountered:
Handle HTML with doctype
cf36a80
Fixes #313
70c6e0e
No branches or pull requests
The input I'm using is essentially this:
When calling
linkifyHtml
on it, the content of the HTML gets eaten up into a comment like so:I'm not sure what's causing this but it seems to be related to the
<!DOCTYPE>
tag. Here is a more minimal example:gets converted to
I've already tried adding
doctype
and!doctype
toignoreTags
but this doesn't seem to help.The text was updated successfully, but these errors were encountered: