Display XML/HTML code tags in Blog posts

I had trouble displaying my previous post, containing xml tags. This blog post here helped me get over my difficulty. Basically you need to transcode "<" and ">" with "&lt;" and "&gt;" respectively, or they will be rendered as code tags and your post will not be displayed as expected.

I used centricle's online encode/decode tool to easily convert my code, rather than manually transcode, a rather cumbersome task. I still had to manually convert leading spaces.

No comments:

Post a Comment

most viewed