Xbasic

*RTF_TO_HTML Function

Syntax

HTML_Text as C = *RTF_TO_HTML(C text)

Arguments

HTML_Text

HTML encoded text.

text

ASCII encoded RTF text.

Description

Convert from rtf to html.

Discussion

The *RTF_TO_HTML() function converts ASCII encoded RTF text to HTML encoded text.

Example

dim tbl as P
dim rtftext as C
dim html_text as C
tbl = table.open("customer")
tbl.fetch_first()
rtftext = *bin_to_rtf(tbl.rtfmemo)
? rtftext
= "{\rtf1\ansi \deff0{\colortbl;\red0\green0\blue0;}{\fonttbl{\f0\fswiss Arial;}{\f1\fnil Verdana, Arial, Helvetica, sans;}}{{\f1 \cf1 \fs24 George lived on top of a mountain. }}}"
html_text = *rtf_to_html(rtftext)
? html_text
=

See Also