• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

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.
0
Smilly
Asked:
Smilly
2 Solutions
 
Lee_NoverCommented:
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
 
SChertkovCommented:
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now