How to display HTML tags as plain text
In PHP use the function htmlspecialchars() to escape <
and >
.
htmlspecialchars('<strong>something</strong>')
Replace <
with <
and >
with >
.
In PHP use the function htmlspecialchars() to escape <
and >
.
htmlspecialchars('<strong>something</strong>')
Replace <
with <
and >
with >
.