xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

OemToHtml()

Inserts HTML character entities into an OEM text string.

Syntax

OemToHtml( <cOemString> ) --> cHtmlString

Arguments

<cOemString>
This is an OEM character string.

Return

The function returns a HTML formatted text string.

Description

Function OemToHtml() inserts HTML character entities into <cOemString> and returns the HTML formatted text string. Note that the function processes only HTML character entities (e.g. &gt;, &lt; or &amp;) 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.

Info

See also:AnsiToHtml(), HtmlToAnsi(), HtmlToOem(), THtmlDocument()
Category: Conversion functions , HTML functions , xHarbour extensions
Source:tip\thtml.prg
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example shows a result of OemToHtml()

   PROCEDURE Main
      LOCAL cText := 'Copyright © 2007 xHarbour Inc'

      ? OemToHtml( cText )  // result: Copyright &copy; 2007 xHarbour Inc

   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe