Closed wingedpig closed 9 years ago
bluemonday makes use of golang package html
Package html implements an HTML5-compliant tokenizer and parser.
So maybe bluemonday works only with HTML5. Font tag is not a valid HTML5 tag.
It's not the HTML5 thing, I use the parsing of the golang package to tokenise but it should still output the correct tags.
This appears to be an error related to how empty tags are managed and matched. I'll look at it now.
@wingedpig you should find this works now, please test it and get back to me if this is not working for you.
Thanks for reporting it.
With the following sample program, in the output, the closing anchor tag is missing and in its place is an erroneous closing font tag:
Am I doing something wrong, or is this a bug?