utils/html
Overview
Utilities for sanitizing and detecting HTML in user-supplied strings.
Properties
tagRegex
Type: RegExp
Source: client/lib/utils/html.js:54
Methods
- containsHtml - Tests whether a string contains any HTML tags.
- sanitizeMessage - Sanitize a message to prevent XSS attacks.
- sanitizeMessages - Sanitize messages to prevent XSS attacks.
Source
client/lib/utils/html.js:1