Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

sanitize_text_field

$str = "<h2>Title</h2>";
sanitize_text_field( $str ); 
// it will return "title" without any HTML tags!
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+6 =