Converts text to HTML (carriage returns are replaced by <BR>, accented characters are replaced by their equivalent in HTML, etc.).
// EDT_HTML is edit control
EDT_HTML = TextToHTML("WINDEV is a great tool" + CR + ...
"Developing applications is really fun")
<Result> = TextToHTML(<Text> [, <Charset used>])
<Result>: Character string
Text in HTML format. Caution: the <html> and </html> tags are not included in the result. They must be added if the result must be displayed in an HTML control.
<Text>: Character string
Name of the text control or character string in text format.
<Charset used>: Optional Integer constant
Constant identifying the character set used to write the <Text>. The current character set of WINDEV or WEBDEV is used by default (charsetCurrent constant).
For more details on these constants, see Correspondence between languages, sub-languages, character sets and nations.
This parameter is not available
- To convert an RTF string to HTML, use RTFToHTML.
- To convert an RTF string to Text, use RTFToText.
Business / UI classification: Business Logic