Add a warning for StripTags
This commit is contained in:
parent
db6ae707ef
commit
b94756bbf0
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ import (
|
|||
)
|
||||
|
||||
// StripTags removes all HTML/XML tags from the input string.
|
||||
// This function must *only* be used for cosmetic purposes, not to prevent code injections like XSS.
|
||||
func StripTags(input string) string {
|
||||
tokenizer := html.NewTokenizer(bytes.NewBufferString(input))
|
||||
var buffer bytes.Buffer
|
||||
|
|
Loading…
Reference in a new issue