Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterUnicode ¶
FilterUnicode removes or replaces Unicode characters that are not compatible with utf8mb3 This ensures OTRS compatibility when Unicode support is disabled
Types ¶
type HTMLSanitizer ¶
type HTMLSanitizer struct {
// contains filtered or unexported fields
}
HTMLSanitizer provides HTML sanitization for user input
func NewHTMLSanitizer ¶
func NewHTMLSanitizer() *HTMLSanitizer
NewHTMLSanitizer creates a new HTML sanitizer with GOTRS-specific policy
func (*HTMLSanitizer) Sanitize ¶
func (s *HTMLSanitizer) Sanitize(html string) string
Sanitize cleans HTML content to prevent XSS attacks
Click to show internal directories.
Click to hide internal directories.