Results in
<div class="is-overlay-bg skrollable skrollable-before"></div>
Do we have setting through which we allow all data-attribute, we can individually allow data-attribute by
$def = $config->getHTMLDefinition(true); $def->info_global_attr['data-location'] = new HTMLPurifier_AttrDef_Text;
But I have lots custom data-attribute that will be added by my wysiwyg editor so can't whitelist all of them, so it will be good have setting through which all data-attribute are allowed
$html = '<div class="is-overlay-bg skrollable skrollable-before" data-location="test"></div>';
Results in
<div class="is-overlay-bg skrollable skrollable-before"></div>
Do we have setting through which we allow all data-attribute, we can individually allow data-attribute by
$def = $config->getHTMLDefinition(true); $def->info_global_attr['data-location'] = new HTMLPurifier_AttrDef_Text;
But I have lots custom data-attribute that will be added by my wysiwyg editor so can't whitelist all of them, so it will be good have setting through which all data-attribute are allowed
Thanks