xHarbour Reference Documentation > Function Reference |
Converts an HTML formatted text string to the OEM character set
HtmlToOem( <cHtmlString> ) --> cOemString
The function returns a text string converted to the ANSI character set.
Function HtmlToOem() removes HTML character entities from <cHtmlString> and returns the text string converted to the OEM 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(), HtmlToAnsi(), 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 HtmlToOem() PROCEDURE Main LOCAL cHtml := 'IF cChr <> "&"' ? HtmlToOem( cHtml ) // result: IF cChr <> "&" RETURN
http://www.xHarbour.com