documentation pass done, ready to use the HTML Checker in other code
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ type htmlEncodingFilter struct{}
|
||||
// htmlEscapedChars is a list of HTML characters that are escaped.
|
||||
const htmlEscapedChars = "<>&"
|
||||
|
||||
// tryOutputCharacter outputs a character that needs to be escaped.
|
||||
// tryOutputRune outputs a rune that needs to be escaped.
|
||||
func (f *htmlEncodingFilter) tryOutputRune(buf strings.Builder, ch rune) bool {
|
||||
switch ch {
|
||||
case '<':
|
||||
|
||||
Reference in New Issue
Block a user