Problem with character references in HTML Language (Urgent)
Posted on 2003-03-05
I need some help to convert character references in an HTML document to the character that the character reference is refering to.
For example, < or < represents the less than sign, å or å represents the letter "a" with a small circle above it. I need some suggestion so that i can convert to these characters in the HTML document. The means that if the character reference < or < appears in the source file, i need to replace all of them with the '<' sign and if the character reference å or å appears , i need to replace all of them with 'å'. There are a whole lengthy list of these character references. At the moment, i can only think of a method of hardcoding the symbols into the java program. Is there a more effective and faster method to replace them?