Как разрешить пользовательские (html5 data- *) атрибуты в HtmlPurifier?
Ввод:
<img src="/my.jpg" data-type="5" alt="" />
приводит к ошибке:
Attribute 'data-type' in element 'img' not supported
(for information on implementing this, see the support forums)
Параметры HtmlPurifierустановлены на:
'HTML.AllowedAttributes' => array('img.src', 'a.href', 'img.data-type')