Standard

Defines the standard text editor XSS filter.

Hierarchy

File

core/modules/editor/src/EditorXssFilter/Standard.php, line 13

Namespace

Drupal\editor\EditorXssFilter

Members

Name Modifiers Type Description
Standard::filterXss public static function Filters HTML to prevent XSS attacks when a user edits it in a text editor. Overrides EditorXssFilterInterface::filterXss
Standard::filterXssDataAttributes protected static function Applies a very permissive XSS/HTML filter to data-attributes.
Standard::getAllowedTags protected static function Get all allowed tags from a restrictions data structure.
Standard::getForbiddenTags protected static function Get all forbidden tags from a restrictions data structure.
Standard::needsRemoval protected static function Whether this element needs to be removed altogether. Overrides Xss::needsRemoval
Xss::$adminTags protected static property The list of HTML tags allowed by filterAdmin().
Xss::$htmlTags protected static property The default list of HTML tags allowed by filter().
Xss::attributes protected static function Processes a string of HTML attributes.
Xss::filter public static function Filters HTML to prevent cross-site-scripting (XSS) vulnerabilities.
Xss::filterAdmin public static function Applies a very permissive XSS/HTML filter for admin-only use.
Xss::getAdminTagList public static function Gets the list of HTML tags allowed by Xss::filterAdmin().
Xss::getHtmlTagList public static function Gets the standard list of HTML tags allowed by Xss::filter().
Xss::split protected static function Processes an HTML tag.
doc_Drupal
2016-10-29 09:43:53
Comments
Leave a Comment

Please login to continue.