I want to display text on the page, the text should look like this:
<sometext> ... but when I echo this, nothing appears!!
<sometext>
How ca I do this?
A "page" is written in HTML, so < means "Start a tag".
<
You have to represent characters with special meaning in HTML using entities.
You can write them directly, or make use of the htmlspecialchars function.
echo "<sometext>"; echo htmlspecialchars("<sometext>");
2.1m questions
2.1m answers
60 comments
57.0k users