I’m trying to display “<“/”>” as String in HTML not as a tag.
I have a database that contains user’s Fullname and Email and when I want display them both I have a format like this:
Christian Eric Paran <CEPexample@yahoo.com>
but I it only display like this:
Christian Eric Paran
is there a way to Display this in HTML from PHP?
Represent characters with special meaning (
<→<&&→&being the ones you need to worry about in text nodes) in HTML using character references.The
htmlspecialcharsfunction will convert for you.