Thursday, April 12, 2007

How to display html codes without executing them

Might you be having trouble displaying codes on your page without actually executing them?

For a quick solution, you might want to try converting all the codes into ascii. For instance, I might want to show <b> bold </b> instead of bold. If you "do nothing", both cases will show up as simply bold - without the <b> tags at all.

I came upon a handy tool for this purpose at http://www.addressmunger.com/display_code . You can use the script provided to munge everything into ascii. In fact, there is another option there for you to munge it into a JavaScript function as well. If you need this too, you are in luck. :P


The Hunger Site The Child Health Site The Breast Cancer Site The Animal Rescue Site

0 comments: