DTW_QHTMLENCODE

AIX HP-UX Linux OS/2 OS/390 OS/400 PTX SUN Win NT
X X X X X X X X X

Purpose

Performs the same function as @DTW_HTMLENCODE but also encodes the single-quote character (') as '. The HTML character escape codes that DTW_QHTMLENCODE uses are shown in Table 43.

Format

@DTW_QHTMLENCODE(stringIn, stringOut)

@DTW_rQHTMLENCODE(stringIn)

Parameters

Table 44. DTW_QHTMLENCODE Parameters
Data Type Parameter Use Description
string stringIn IN A variable or literal string.
string stringOut OUT A variable that contains the modified form of stringIn in which certain characters are replaced by the HTML character escape codes.

Return Codes

Table 45. DTW_QHTMLENCODE Return Codes
Return Code Explanation
-1001 The server could not process a Net.Data request to allocate memory.
1003 An incorrect number of parameters were passed on a function call.
1005 A parameter passed on a function call, required to be a string variable, was of a different variable type.
1006 A literal string was passed on a function call for a parameter which was required to be an output parameter.

Examples

Example 1: Encodes an apostrophe and a space

@DTW_QHTMLENCODE(string1,string2)

Example 2: Encodes apostrophes, spaces, and an ampersand

@DTW_rQHTMLENCODE("John's & Jane's")


[ Top of Page | Previous Page | Next Page | Index ]