.NET musings, news, and product reviews courtesy of the Averetek development team.
Ever wonder what's the best way to represent a symbol or special character in HTML? For example, if you want to display the registered trademark symbol (®), there are at least three ways to do so:
1) Enter the raw character - ®
2) Encode it using a
numbered character entity - ®
3) Encode it using a
named character entity - ®
There are advantages and disadvantages to each approach. After a little searching, I found an excellent article on the subject at
http://www.blooberry.com/indexdot/html/tagpages/text.htm. In this case, they recommend going with the numbered character entity. Check out the article to find out why.