codeigniter中的db_clean是什么?

Tej*_*tel -1 codeigniter

有什么用的db_clean()用一个简单的例子吗?

Ste*_*teD 6

好像db_clean()是一个正在调用的自定义助手xss_clean().

查看此链接, db_clean()存储在MY_security_helper.php中,其中MY_是扩展本机帮助程序的命名约定.

xss_clean()

Provides Cross Site Script Hack filtering. This function is an alias
to the one in the Input class. More info can be found there.
Run Code Online (Sandbox Code Playgroud)

资料来源:https://www.codeigniter.com/user_guide/helpers/security_helper.html