Sanitization functions

Functions to sanitize values.

Functions

NameLocationDescription
check_urlincludes/common.incPrepare a URL for use in an HTML attribute. Strips harmful protocols.
filter_xssincludes/common.incFilter XSS.
filter_xss_adminincludes/common.incVery permissive XSS/HTML filter for admin-only use.
filter_xss_bad_protocolincludes/common.incProcesses an HTML attribute value and ensures it does not contain an URL with a disallowed protocol (e.g. javascript:).
_filter_xss_attributesincludes/common.incProcesses a string of HTML attributes.
_filter_xss_splitincludes/common.incProcesses an HTML tag.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.