Search
 
SCRIPT & CODE EXAMPLE
 

PHP

sanitize_text_field

Check whether the string is a valid UTF-8 character, and remove all HTML tags.


$str = "<h2>Title</h2>";
sanitize_text_field( $str ); // it will return "title" without any HTML tags!
Comment

sanitize_text_field

$str = "<h2>Title</h2>";
sanitize_text_field( $str ); 
// it will return "title" without any HTML tags!
Comment

PREVIOUS NEXT
Code Example
Php :: php closecursor 
Php :: laravel created_at where date format 
Php :: php 7.4 modules list 
Php :: php random name 
Php :: search on taxonomy wordpress query 
Php :: php session time out default 
Php :: remove all items of an array except the last one in php 
Php :: request get query string laravel 
Php :: laravel sort by numbers 
Php :: php delete element from array 
Php :: laravel api enable cors 
Php :: php create url with query sting from array 
Php :: laravel remove duplicates from array 
Php :: how to find this day is holiday in php day 
Php :: laravel share on whatsapp link 
Php :: mysql_fetch_array php 
Php :: strval in php 
Php :: Download multiple files as zip in PHP 
Php :: php enter line break 
Php :: php sql get single value 
Php :: wp logs 
Php :: php full day name 
Php :: php create an image 
Php :: php shell command execution 
Php :: php in html attributes 
Php :: var dump php look clear 
Php :: Laravel Error Log, How to check Error Log in Laravel 
Php :: php define object 
Php :: laravel image ratio validation 
Php :: PHP money_format — Formats a number as a currency string 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =