Tcl Powered!NeoWebScript

Home
 
Download
User Info
New User FAQ
Tutorials
Demos
Commands
Variables
Troubleshooting
Sysop Info
Sysop FAQ
Theory
Installation
Management
Tests
Troubleshooting
Feedback
Resources
Release Notes
Credits
Disclaimer
ESCAPE_ATTRIBUTE - Neowebscript
Synopsis * Description

Escapes reserved SGML characters.

Synopsis

  • escape_attribute ?-option? string

Description

Replaces special characters in string that are usually reserved in HTML document character set. The following special characters are replaced with the following named character entities:

Character:Replacement:
&&
<&lt;
>&gt;
"&quot;


'&#39;
The -option specifies the character used for padding string (the default is -noquotes).
Option:Character:
-doublequotes"
-singlequotes'
-noquotes 
The command is targetted to INPUT variables within FORM documents, and may be used in general to safely escape special characters in any attribute within an HTML element. However, anchor links or any attribute containing a relative or absolute URI should be escaped using quote_string.

Copyright © 1995-1999 NeoSoft Inc., 1770 St. James Place, Suite 500, Houston, TX 77056 USA. All Rights Reserved