Documentation ¶
Overview ¶
Package sanitizer provides a simple html sanitizer to remove tags and attributes that could potentially cause security issues.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeBytes ¶
SanitizeBytes returns a sanitized version of the input. It throws out any attributes or tags that are not explicitly allowed in allowElems or allowAttributes below, including any child nodes of elements that are not allowed. It returns the empty string if there was an error parsing the input.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.