Answers for "How to display HTML tags as plain text using PHP"

PHP
1

php echo html as text

echo '<pre>';
echo htmlspecialchars($YOUR_HTML);
echo '</pre>';
Posted by: Guest on July-15-2021
0

show html as text in php

htmlspecialchars('<strong>something</strong>')
Posted by: Guest on October-05-2020

Code answers related to "How to display HTML tags as plain text using PHP"

Browse Popular Code Answers by Language