When we try to display some html, javascript and css code in our Blog, in stead of being treated as plain text, they are often rendered as a part of the blog code. The trick to display them is translating the tags into their aliases. For example, use < for '<' and > for '>'. If we want to display a line of code:
<button onclick="window.open('Download.psp?param=hello','mywindow');" type="button" >Download</button>
We need to put following code in our blog:
<button onclick="window.open('Download.psp?param=hello','mywindow');" type="button" >Download</button>
The link to do this conversion is here
No comments:
Post a Comment