How to display html or javascript code in a Wordpress entry
I tried using the <code></code> tags in the wordpress toolbar, but to no avail.
The solution? Use the HTML equivalents for “<” and “>”.
“<” is & l t
“>” is & g t
(remove the spaces between the characters in the HTML code, of course)
RELATED / YOU MIGHT FIND THESE INTERESTING
- BROWSE / IN TIMELINE
- « Javascript to hide email addresses from crawlers (and spammers)
- » How walkable is your neighborhood? Now you can calculate it online.
- BROWSE / IN Blogging Design Computers
- « Javascript to hide email addresses from crawlers (and spammers)
Like this story? Share with others on:
del.icio.us
digg
reddit
furl
Stumble it!
COMMENTS / ONE COMMENT
Jordan added these pithy words on Mar 30 08 at 3:51 pmThanks!
SPEAK / ADD YOUR COMMENT
Comments are moderated.
Technorati Tags: code webpage wordpress html special characters display html display javascript html blog print html



