Answers for "how to convert html special characters string to html in php"

PHP
0

html special char php

<?php
$str = "This is some <b>bold</b> text.";
echo htmlspecialchars($str);

 ?>
Posted by: Guest on June-14-2021
0

html special characters php

$string = "This is testing message "ETC" ";
htmlspecialchars($string, ENT_COMPAT)
Posted by: Guest on January-06-2021

Code answers related to "how to convert html special characters string to html in php"

Browse Popular Code Answers by Language