PHP Class AMP_Blacklist_Sanitizer, amp-wp

See following for blacklist: https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#html-tags
Inheritance: extends AMP_Base_Sanitizer
Mostra file Open project: Automattic/amp-wp Class Usage Examples

Protected Properties

Property Type Description
$DEFAULT_ARGS

Public Methods

Method Description
sanitize ( )

Private Methods

Method Description
get_blacklisted_attributes ( )
get_blacklisted_protocols ( )
get_blacklisted_tags ( )
merge_defaults_with_args ( $key, $values )
replace_node_with_children ( $node, $bad_attributes, $bad_protocols )
sanitize_a_attribute ( $node, $attribute )
strip_attributes_recursive ( $node, $bad_attributes, $bad_protocols )
strip_tags ( $node, $tag_names )
validate_a_node ( $node )

Method Details

sanitize() public method

public sanitize ( )

Property Details

$DEFAULT_ARGS protected_oe property

protected $DEFAULT_ARGS