suryaprakash Posted August 10, 2006 Share Posted August 10, 2006 hi folks, I would like to print some tags in the page.but the html is parsing them. how to avoid parsing for some tags.. i want to print as hi sp do u know <hr> tag.Thanks in advance. Link to comment Share on other sites More sharing options...
vchris Posted August 10, 2006 Share Posted August 10, 2006 you have to replace all < with > and > by < so the browser won't parse them.<hr> = >hr< Link to comment Share on other sites More sharing options...
Chandra.Vedantham@gmail.com Posted August 10, 2006 Share Posted August 10, 2006 Hi,You can use the innerText property exposed by the DOM to get the above output. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 28, 2006 Share Posted August 28, 2006 you have to replace all < with > and > by < so the browser won't parse them.<hr> = >hr<I thought you needed to use < and >Or is this just another way of doing it? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 28, 2006 Share Posted August 28, 2006 60 and 62 are the hex codes for those two characters, and you can display any hex character with xxx; where xxxx is the hex code. Several characters have named entities in addition, like © showing a copyright, & showing an ampersand, " showing a quote, etc. Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 29, 2006 Share Posted August 29, 2006 Oh right, is that just to make them easier to remember? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 29, 2006 Share Posted August 29, 2006 It's mostly to make them standard. Different character encodings have different characters for the same hex values, but if you want a trademark symbol, no matter what the language is set to, ™ will always show that. The hex code might show a different character for a different language. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now