PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Converts a text string into an HTML string (the CR characters are replaced by <BR>, the accented characters are replaced by their equivalent in HTML, ...).
Versions 19 and later
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 19
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Example
// EDT_HTML is edit control
EDT_HTML = TextToHTML("WINDEV is a great tool" + CR + ...
"The development is child's play")
Syntax
<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 (with or without quotes)
Name of text control or character string in text format.
<Charset used>: Optional Integer constant
Versions 18 and later
Constant identifying the character set used to write the <Text>. The current character set of WINDEV or WEBDEV is used by default (charsetCurrent constant).
See Correspondence between languages, sub-languages, character sets and nations for more details.
PHP This parameter is not available
New in version 18
Constant identifying the character set used to write the <Text>. The current character set of WINDEV or WEBDEV is used by default (charsetCurrent constant).
See Correspondence between languages, sub-languages, character sets and nations for more details.
PHP This parameter is not available
Constant identifying the character set used to write the <Text>. The current character set of WINDEV or WEBDEV is used by default (charsetCurrent constant).
See Correspondence between languages, sub-languages, character sets and nations for more details.
PHP This parameter is not available
Remarks
  • To convert a RTF string into a string in HTML format, use RTFToHTML.
  • To convert a RTF string into a string in Text format, use RTFToText.
Component : wd240rtf.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment