HTML, PHP are Escape characters '<' and '>', while echoes
Use htmlentities()
to convert to a text string.
<?php echo htmlentities("<label> AAAAA"); ?>
<?php $string = "<label> AAAAA"; //whatever you want echo htmlspecialchars($string); ?>
refrence htmlspecialchars
check this http://php.net/manual/en/function.htmlentities.php and this is the code -
echo htmlentities ("<label> AAAAA");
Use HTML objects: <
for <
and >
for >
. Can be achieved using the htmlspecialchars
function: http://php.net/htmlspecialchars .
Read more about HTML objects here: http://www.santagata.us/characters/CharacterEntities.html