Пользовательские атрибуты htmlpurifier

Как разрешить настраиваемые атрибуты (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')
12
задан x17az 16 December 2010 в 18:14
поделиться