Closed kiprobinsonknack closed 1 year ago
It's not a tag, it's just junk that wishes it were a tag 😄 So I don't think this is a bug. I appreciate why you would prefer that it happen this way. I think that could make a good PR if you're able to make that happen with the stream of information we're getting from htmlparser2
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@boutell
I would appreciate if you could reconsider.
> sanitizeHtml('<p><3 Linux</p>', { allowedTags: [], allowedAttributes: {} })
''
to me it seems strange, doesn't it?
upd: worked on the latest lib version. My apologies
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
To Reproduce
Expected behavior
Mentioned in comments above, I expect output to be:
But in fact I see:
Describe the bug
Basically, I'm expecting malformed tags to be escaped in escape mode.
Details
Version of Node.js: 18.12.0
Server Operating System: MacOSX Ventura 13.0.1
Additional context: n/a
Screenshots n/a