Search
 
SCRIPT & CODE EXAMPLE
 

PHP

htmlentities (PHP 4, PHP 5, PHP 7, PHP 8) htmlentities — Convert all applicable characters to HTML entities

<?php
$str = "A 'quote' is <b>bold</b>";

// Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt;
echo htmlentities($str);

// Outputs: A &#039;quote&#039; is &lt;b&gt;bold&lt;/b&gt;
echo htmlentities($str, ENT_QUOTES);
?>
Comment

PREVIOUS NEXT
Code Example
Php :: listing table in laravel blade 
Php :: make controller laravel history open link 
Php :: pcntl php 
Php :: auto check a category when creating new post 
Php :: afosto/yaac error parsing certificate request 
Php :: php array reduce 
Php :: tcpdf Array and string offset access syntax with curly braces is deprecated 
Php :: php exponential equation 
Php :: old codestar gallery 
Php :: checking why sql query not connecting to database 
Php :: composer install error 
Php :: QR CODE FROM CAMCODES 
Php :: how to show image in easyadmin 3 index page 
Php :: query builder laravel getmedia undefined method 
Php :: big database file into database php 
Php :: laravel tinker to test email on server 
Php :: Add text below product title on archive page + ACF 
Php :: laravel validation on gropu route 
Php :: namespace autoload php 
Php :: bar chart in js,php prt 1 
Php :: automatice prevent default the form in php 
Php :: header redirect php 
Php :: eloquentdatatable add column 
Php :: PHP strcasecmp — Binary safe case-insensitive string comparison 
Php :: if ip in the array redirect php 
Php :: Verifying a login cookie 
Php :: Lumen framework promise 
Php :: redirect from controller to named route with prams in URL 
Php :: php Display random custom content in WooCommerce shop archive loop 
Php :: Add custom column at custom posts list 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =