Answers for "htmlspecialchars"

PHP
1

htmlspecialchars

<?php
$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new; // <a href='test'>Test</a>
?>
Posted by: Guest on May-23-2021
0

html special characters php

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

Browse Popular Code Answers by Language