Functions to sanitize values.

See http://drupal.org/writing-secure-code for information on writing secure code.

File

core/includes/common.inc, line 1652
Common functions that many Backdrop modules will need to reference.

Functions

Namesort descending Location Description
backdrop_attributes core/includes/common.inc Converts an associative array to an XML/HTML tag attribute string.
backdrop_strip_dangerous_protocols core/includes/common.inc Strips dangerous protocols (e.g. 'javascript:') from a URI.
check_markup core/modules/filter/filter.module Runs all the enabled filters on a piece of text.
check_plain core/includes/bootstrap.inc Encodes special characters in a plain-text string for display as HTML.
check_url core/includes/common.inc Strips dangerous protocols from a URI and encodes it for output to HTML.
filter_xss core/includes/common.inc Filters HTML to prevent cross-site-scripting (XSS) vulnerabilities.
filter_xss_admin core/includes/common.inc Applies a very permissive XSS/HTML filter for admin-only use.
filter_xss_bad_protocol core/includes/common.inc Processes an HTML attribute value and strips dangerous protocols from URLs.
format_string core/includes/bootstrap.inc Formats a string for HTML display by replacing variable placeholders.
get_t core/includes/bootstrap.inc Returns the name of the proper localization function.
st core/includes/install.inc Translates a string when some systems are not available.
t core/includes/bootstrap.inc Translates a string to the current language or to a given language.
_filter_xss_attributes core/includes/common.inc Processes a string of HTML attributes.
_filter_xss_split core/includes/common.inc Processes an HTML tag.