Skip to content

Posting code examples rendered like text

This article was been published more than a year ago. The information may be outdated.

When writing my last post I had a problem that parts of the code was parsed into the page, meaning that the result, instead of the actual code, was seen. As you can see in the post, I solved the problem, and here’s how:

By replacing the lesser than symbol (<) with “&lt;”, the greater than symbol (>) with “&gt;” and the ampersand symbol (&) with “&amp;”.

The solution to this, and a lot of very handy cheat sheets can be found at ILoveJackDaniels.com

Be First to Comment

Leave a Reply