ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / String functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Converts a text string into an HTML string (carriage returns are replaced by <BR>, accents are replaced by their HTML equivalent, ...).
Example
// SAI_HTML est un champ de saisie
SAI_HTML = TextToHTML("WINDEV est un outil formidable" + CR + ...
	"Le développement devient un jeu d'enfant")
Syntax
<Result> = TextToHTML(<Text> [, <Charset used>])
<Result>: Character string
Text in HTML format. Please note: <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/24/2024

Send a report | Local help