Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » Alphabetical list of functions


HTML_ENCODE function [Miscellaneous]

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

HTML_ENCODE( string )
  • string   Arbitrary string to be used in an HTML document.


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

Characters Substitution
" "
' '
& &
< &lt;
> &gt;
codes nn less than 0x20 &#xnn;

This function supports NCHAR inputs and/or outputs.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.