Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/283.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何使用mews/Purizer添加HTML5标记(视频和源代码)?_Php_Laravel 5_Htmlpurifier - Fatal编程技术网

Php 如何使用mews/Purizer添加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

Im使用mews/净化器

在HTML中添加了video[style | controls | width | height],source[src]。允许在配置/净化器中使用,但每次使用clean()方法时它都会删除video和source标记

也许是因为它是HTML5标签,但我怎么能允许净化器中有这些标签呢

这是我在配置/净化器上的默认设置

'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,
    ],

总体而言,人们似乎对回购协议不太满意。看看这里,按照说明去做:人们似乎对回购协议总体上不太满意。请查看此处并按照说明操作: