Purifier icon indicating copy to clipboard operation
Purifier copied to clipboard

Element 'nav' is not supported with html5 custom_definition

Open sonicmolson opened this issue 8 years ago • 3 comments

Using the default configuration using vendor publish, when I add "nav" to the default HTML.allowed setting, like so 'HTML.Allowed' => 'div,b,strong,i,em,u,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src],nav'1

I get the following error: Element 'nav' is not supported in HTMLDefinition.php (line 311)

I thought that the custom_definition should have resolved that. Is there something I have to do after to enable the HTML

I'm running mews/purfier 2.0.7 with htmlpurifer 4.8.0

sonicmolson avatar Jul 14 '17 18:07 sonicmolson

I have the same problem!

0x5459 avatar Nov 09 '17 17:11 0x5459

yeah ! I have the same problem too!I need add "video" tags and something attributes.

brucebnu avatar Dec 10 '17 10:12 brucebnu

@brucebnu https://github.com/mewebstudio/Purifier/pull/52#issuecomment-343273597

0x5459 avatar Dec 10 '17 12:12 0x5459