Convert HTML to widestring?

How can I convert an HTML text to widestring, and convert all the special character to unicode?

like this

<span>this is a &Oslash; test</span>

Where &Oslash; should be a unicode value in the widestring.
LVL 1
SmillyAsked:
Who is Participating?
 
Lee_NoverConnect With a Mentor Commented:
converting it is easy ... simply use StringToOleStr and SysFreeString to free the allocated memory

except I dunno about those forbidden chars
will look it up
0
 
SChertkovConnect With a Mentor Commented:
Delphi6 have function HTMLDecode in unit HTTPApp for
converting special character in HTML text.
But this function produce Ansi string and work with small set of special characters.
 
0
 
SmillyAuthor Commented:
Hi SChertkov

I dont have a function named HTMLDecode in the unit HTTPApp, I only have a HTTPDecode function.

Smilly
0
 
Lee_NoverCommented:
>> Delphi6 have function HTMLDecode in unit HTTPApp for
converting special character in HTML text.

Smilly do you have D6 ? .. because I have that function
HTTPDecode and HTMLDecode
0
 
pnh73Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between Lee_Nover and SChertkov

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.