A Developer's Diary

Dec 24, 2012

HTML escape tool

A HTML escape tool is a must for the people who share a lot of code in their blogs. There are many special characters which hinder in rendering your post properly if not escaped.

The below program has characters < and > which should be escaped with characters &lt; and &gt; respectively

#include 

int main()
{
    std::cout << "Hello World";
    return 0;
}
I use Postify to escape special characters before using them. Below is the escaped version of the above program using Postify
#include &lt;iostream&gt;

int main()
{
    std::cout &lt;&lt; &quot;Hello World&quot;;
    return 0;
}

No comments :

Post a Comment