| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Converts an HTML formatted text string to the ANSI character set.
HtmlToAnsi( <cHtmlString> ) --> cAnsiString
The function returns a text string converted to the ANSI character set.
Function HtmlToAnsi() removes HTML character entities from <cHtmlString> and returns the text string converted to the ANSI character set. Note that the function processes only HTML character entities (e.g. >, < or &) that are interchangeable in the OEM and ANSI character sets. Refer to AnsiToHtml() for a complete list of HTML character entities recognized by the function.
| See also: | AnsiToHtml(), HtmlToOem(), OemToHtml(), THtmlDocument() |
| Category: | Conversion functions , HTML functions , xHarbour extensions |
| Source: | tip\thtml.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example shows a result of HtmlToAnsi()
PROCEDURE Main
LOCAL cHtml := 'IF cChr <> "&"'
? HtmlToAnsi( cHtml ) // result: IF cChr <> "&"
RETURN
http://www.xHarbour.com