我很确定您必须明确命名所有允许的属性-只需使用:
$allowedposttags[\'iframe\'] = array (
\'align\' => true,
\'frameborder\' => true,
\'height\' => true,
\'width\' => true,
\'sandbox\' => true,
\'seamless\' => true,
\'scrolling\' => true,
\'srcdoc\' => true,
\'src\' => true,
\'class\' => true,
\'id\' => true,
\'style\' => true,
\'border\' => true,
);
如果你能想到别人,请让我知道!