We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e95a41 commit c0c052bCopy full SHA for c0c052b
modules/markup/html.go
@@ -313,7 +313,7 @@ func RenderEmoji(
313
return ctx.postProcess(rawHTML)
314
}
315
316
-var tagCleaner = regexp.MustCompile(`<((?:/?\w+/\w+)|(?:/[\w ]+/)|(/?[hH][tT][mM][lL][ />]))`)
+var tagCleaner = regexp.MustCompile(`<((?:/?\w+/\w+)|(?:/[\w ]+/)|(/?[hH][tT][mM][lL][ />])|(/?[hH][eE][aA][dD][ />]))`)
317
var nulCleaner = strings.NewReplacer("\000", "")
318
319
func (ctx *postProcessCtx) postProcess(rawHTML []byte) ([]byte, error) {
0 commit comments