HTML_ENCODE function [HTTP]

Function

Encodes special characters within strings to be inserted into HTML documents.

Syntax

HTML_ENCODEstring )

NoteCIS functional compensation performance considerations apply. See “Conditions that cause processing by SQL Anywhere” in Chapter 3, “Optimizing Queries and Deletions,” in the Performance and Tuning Guide.

Parameters

string An arbitrary literal string used in an HTML document.

Usage

This function returns the string argument after making the following set of substitutions:

Characters

Substitution

"

"

'

'

&

&

<

&lt;

>

&gt;

codes no less than 0X20

&#xnn

Standards and compatibility

See also

“HTML_DECODE function [HTTP]”

“HTTP_ENCODE function [HTTP]”