PHP Codeigniter绕过html_scape函数

问题描述 投票:0回答:1

我正在运行php codeigniter应用,并且我需要绕过html_escape函数以将嵌入的html代码插入数据库。

这是我需要插入数据库的示例:

<script type='text/javascript' charset='utf-8' scr='https://www.buzzsprout.com/423805.js?container_id=buzzsprout-small-player-423805&player=small'></script>

我已经尝试过$ data ['url'] = $ this-> input-> post('podcast_url');

但是它一直将[已删除] [已删除]插入数据库。如果我仅使用链接,它就可以正常工作。

有没有办法绕过那个?

php codeigniter html-escape-characters
1个回答
0
投票

application/config/config.php中的配置更改为

$config['global_xss_filtering'] = FALSE;

Reference

相关问题:-Codeigniter - Disable XSS filtering on a post basis

© www.soinside.com 2019 - 2024. All rights reserved.