How to display html codes without executing them?

63
rate or flag this page

By lordwarwizard

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

Print   —   Rate it:  up  down  flag this hub

RSS for comments on this Hub

charms profile image

charms  says:
3 years ago

Wow, this is interesting. I will try to check this out. Thanks for sharing.

Brian  says:
3 years ago

Thanks, lordwarwizard. I bet this'll be a lot easier and faster than typing out all the HTML entities myself.

Submit a Comment

Members and Guests

Sign in or sign up and post using a hubpages account.


optional


  • No HTML is allowed in comments, but URLs will be hyperlinked
  • Comments are not for promoting your hubs or other sites

working