<?php
require_once '/library/HTMLPurifier/HTMLPurifier.auto.php';
$config = HTMLPurifier_Config::createDefault();
$config->set('Filter.YouTube', true);
$purifier = new HTMLPurifier($config);
?>
(^这是我唯一的HTMLPurifier设置)HTMLPurifier的Youtube
应该<span class="youtube-embed">nto6EvPFO0Q</span>
在到YouTube视频embbeded使这个。但它不起作用。 (什么也没有发生根本)
但加载像这样工作的:
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/nto6EvPFO0Q />
<param name="wmode" value="transparent" />
<embed src="http://www.youtube.com/v/nto6EvPFO0Q"
type="application/x-shockwave-flash"
wmode="transparent" width="425" height="350" />
</object>
(这是一个安全问题^?)
当你说:“该文件是ANSI格式”,你的意思是CP-1252? – Ariel
我更改为UTF-8。这只是YouTube的问题。我将编辑我的问题,以便更容易理解。 – John
好的,更新了问题。 – John