![MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference Download Page 400](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-cfml-language/coldfusion-4-5-cfml-language_reference_3287257400.webp)
376
CFML Language Reference
HTMLEditFormat
Returns HTML escaped string. All carriage returns are removed from string, and all
special characters (> < " &) are escaped.
See also
HTMLCodeFormat
.
Syntax
HTMLEditFormat
(
string [, version ])
string
String being HTML escaped.
version
The specific HTML version to use in replacing special characters with their entity
references. Valid entries are:
•
-1
– The latest implementation of HTML
•
2.0
– For HTML 2.0 (Default)
•
3.2
– For HTML 3.2
Usage
By escaping all special characters, this function increases the length of the specified
string. This can cause unpredictable results when performing certain string functions
(Left, Right, and Mid, for example) against the expanded string.
Example
<!--- This example shows the use of HTMLCodeFormat
and HTMLEditFormat --->
<HTML>
<HEAD>
<TITLE>
HTMLEditFormat Example
</TITLE>
</HEAD>
<BODY BGCOLOR=silver>
<H3>HTMLEditFormat Example</H3>
<FORM ACTION="HTMLeditformat.cfm" METHOD="POST">
Try entering a URL for the tag to return in HTMLCodeFormat
and HTMLEditFormat:
<INPUT TYPE="Text" size=25 NAME="urladdress"
VALUE="http://www.allaire.com">
<INPUT TYPE="Submit" NAME="" VALUE="get page">
</FORM>
<!--- sets a default value for a url to retrieve --->
<CFPARAM NAME="urladdress" DEFAULT="http://localhost/cfdocs/index.htm">
<!--- if we have passed a url address in the FORM, we
want to display the passed address --->
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...