Php 如何使用mews/Purizer添加HTML5标记(视频和源代码)?
Im使用mews/净化器 在HTML中添加了video[style | controls | width | height],source[src]。允许在配置/净化器中使用,但每次使用clean()方法时它都会删除video和source标记 也许是因为它是HTML5标签,但我怎么能允许净化器中有这些标签呢 这是我在配置/净化器上的默认设置Php 如何使用mews/Purizer添加HTML5标记(视频和源代码)?,php,laravel-5,htmlpurifier,Php,Laravel 5,Htmlpurifier,Im使用mews/净化器 在HTML中添加了video[style | controls | width | height],source[src]。允许在配置/净化器中使用,但每次使用clean()方法时它都会删除video和source标记 也许是因为它是HTML5标签,但我怎么能允许净化器中有这些标签呢 这是我在配置/净化器上的默认设置 'default' => [ 'HTML.Doctype' => 'HTML 4.01 Transit
'default' => [
'HTML.Doctype' => 'HTML 4.01 Transitional',
'HTML.Allowed' => 'div,b,strong,i,em,u,a[href|title],ul,ol,li,p[style],br,span[style],img[width|height|alt|src],video[style|controls|width|height],source[src]',
'CSS.AllowedProperties' => 'font,font-size,font-weight,font-style,font-family,text-decoration,padding-left,color,background-color,text-align',
'AutoFormat.AutoParagraph' => true,
'AutoFormat.RemoveEmpty' => true,
],
总体而言,人们似乎对回购协议不太满意。看看这里,按照说明去做:人们似乎对回购协议总体上不太满意。请查看此处并按照说明操作: