Xbasic
*HTML_TO_PLAIN Function
Syntax
Text as C = *HTML_TO_PLAIN(C text)
Arguments
- Text
Unencoded ASCII text.
- text
Encoded HTML text.
Description
Convert from html to plain text.
Discussion
The *HTML_TO_PLAIN() function converts HTML text to its equivalent un-encoded ASCII text.
Example
dim html_text as C dim plain_text as C html_text = file.to_string("c:\rtf_test.htm") html_text = extract_string(html_text, "< body", "< /body>") html_text = right(html_text, len(html_text)-1) ? html_text = George lived on top of a mountain. plain_text = *html_to_plain(html_text) ? plain_text = "George lived on top of a mountain. "
See Also