You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle HTML entities for the purposes of get_attribute and set_attribute. Define what should happen in cases such as $p->set_attribute( 'id', 'My‐id' ); and $p->get_attribute( 'id' ) when id="My‐id".
The follow-up work once the #42485 is merged:
get_attributeandset_attribute. Define what should happen in cases such as$p->set_attribute( 'id', 'My‐id' );and$p->get_attribute( 'id' )whenid="My‐id".set_attribute( )to make adding inline JavaScript harder (see @peterwilsoncc's comment and the reasoning behind not banning them).WP_HTML_Tag_Processor#44478set_content_inside_balanced_tags#47036has_next_tagmethodhas_classmethod to the public WP_HTML_Tag_Processor API #46232 (rationale)(Try adding layout classnames to inner block wrapper #44600 (comment)))
(string) $w(related comment). Done:@w->get_updated_html()Code is located in two folders:
cc @gziolo @dmsnell @georgeh