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 0048d7c commit b68eb54Copy full SHA for b68eb54
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][ />])|(/?[hH][eE][aA][dD][ />]))`)
+var tagCleaner = regexp.MustCompile(`<((?:/?\w+/\w+)|(?:/[\w ]+/)|(/?[hH][tT][mM][lL]\b)|(/?[hH][eE][aA][dD]\b))`)
317
var nulCleaner = strings.NewReplacer("\000", "")
318
319
func (ctx *postProcessCtx) postProcess(rawHTML []byte) ([]byte, error) {
0 commit comments