Filters the check for unsafe CSS in safecss_filter_attr.
Description
Enables developers to determine whether a section of CSS should be allowed or discarded.By default, the value will be false if the part contains \ ( & } = or comments.Return true to allow the CSS part to be included in the output.
Parameters
$allow_cssbool
Whether the CSS in the test string is considered safe.
3052*3053* @since 5.5.03054*3055* @param bool$allow_css Whether the CSS in the test string is considered safe.3056* @param string$css_test_string The CSSstring to test.3057*/3058$allow_css=apply_filters('safecss_filter_attr_allow_css',$allow_css,$css_test_string);30593060// Only add the CSS part if it passes the regex check.3061if($allow_css){3062if(''!==$css){3063$css.=';';3064}
History
Introduced in 5.5.0. Unchanged from 6.7.7 through 7.1.0.