The html-escape
normalizer uses html.EscapeString to escape special characters like "<" to become "<". It escapes only five such characters: <, >, &, ' and ".
type Comment struct {
Body string `checkers:"html-escape"`
}
comment := &Comment{
Body: "<tag> \"Checker\" & 'Library' </tag>",
}
checker.Check(comment)
// Outputs:
// <tag> "Checker" & 'Library' </tag>
fmt.Println(comment.Body)