ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Converts text to HTML (carriage returns are replaced by <BR>, accented characters are replaced by their equivalent in HTML, etc.).
Example
// EDT_HTML is edit control
EDT_HTML = TextToHTML("WINDEV is a great tool" + CR + ...
"Developing applications is really fun")
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
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.
WEBDEV - Browser codePHP This parameter is not available
Remarks
  • To convert an RTF string to HTML, use RTFToHTML.
  • To convert an RTF string to Text, use RTFToText.
Business / UI classification: Business Logic
Component: wd300rtf.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/01/2022

Send a report | Local help