Search
 
SCRIPT & CODE EXAMPLE
 

PHP

htmlspecialchars (PHP 4, PHP 5, PHP 7, PHP 8) htmlspecialchars — Convert special characters to HTML entities

<?php
$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new; // &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;
?>
Comment

PREVIOUS NEXT
Code Example
Php :: mysqli fetch row assoc 
Php :: join table laravel count 
Php :: php read mysql 
Php :: title tag wordpress 
Php :: php sort custom function 
Php :: redirect in php 
Php :: Laravel: Validation unique on update 
Php :: php get list of filenames in diretory 
Php :: php has constant 
Php :: laravel get latest 
Php :: number format without comma php 
Php :: laravel wherein example 
Php :: html special characters php 
Php :: laravel web php request to redirect to another page 
Php :: how to serve the port in php 
Php :: how to change php variable value in javascript 
Php :: laravel routes return view in web.php 
Php :: php convert 
Php :: laravel model save get id 
Php :: laravel-cors 
Php :: Day of Week Using carbon library 
Php :: format a number with leading zeros in php 
Php :: wp-config for developement 
Php :: use font awesome in laravel 8 
Php :: get custom post type taxonomy value 
Php :: laravel return response view 
Php :: combine 2 columns search query laravel 
Php :: php check if string contains url 
Php :: send var in header php 
Php :: php count occurrences of string in array 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =