📜  sanitize_text_field - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:12.985000             🧑  作者: Mango

代码示例1
Check whether the string is a valid UTF-8 character, and remove all HTML tags.


$str = "

Title

"; sanitize_text_field( $str ); // it will return "title" without any HTML tags!