Documentation ¶
Overview ¶
Package sanitize provides funcs that will allow untrusted content into a template and controls the escaping.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ASCIISpace = rune(` `[0])
ASCIISpace ...
Functions ¶
func Sanitize ¶
SanitiseHTML sanitizes HTML Leaving a safe set of HTML intact that is not going to pose an XSS risk
func StripTags ¶
StripTags allows everything, allows tabs, newlines, ASCII space but non-conforming whitespace, control chars, and also prevents shouting
func StripTagsSentence ¶
StripTagsSentence strips all HTML tags, allows ASCII space
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.