我已经使用该strip_tags
方法为其他输入法编写了脚本,但它不适用于Summernote。
我可以使用script_tags
或任何其他方法来防止跨站点脚本吗?
我已经尝试过使用该strip_tags
方法,但没有奏效。
$a['description'] = strip_tags($data['description']); //In the Controller
<textarea id='summernote' name="description">//In the form
我希望将代码保存在数据库中,而不只使用脚本标签。
蝴蝶刀刀
DIEA