How to display HTML Tags as plain text

joomlaSometimes you may want to show the html tag in an article, where normally it would be rendered.  This article shows you how.


Preformatted Style

Here are two identical lines of code, one using the standard Paragraph style, and the next one using the preformatted style.

This is some text that has been made bold.

This is some <strong>text that has been made bold</strong>.

 

HTML Special Characters

You can also replace individual characters using HTML special characters, as follows:

'&' (ampersand) becomes &amp;
'"' (double quote) becomes &quot; when ENT_NOQUOTES is not set.
"'" (single quote) becomes &#039; only when ENT_QUOTES is set.
'<' (less than) becomes &lt;
'>' (greater than) becomes &gt;

 

Thanks for visiting.