Answers for "what is html special characters 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
0

php get html with special characters

$source = 'url of page with text with special characters';
$html = file_get_contents($source,0);
$html = mb_convert_encoding($html, 'UTF-8', mb_detect_encoding($html, 'UTF-8, ISO-8859-1', true));
Posted by: Guest on August-24-2021

Code answers related to "what is html special characters php"

Browse Popular Code Answers by Language