Replaces characters in a string:
A copy of the string, with characters converted.
Display and formatting functions, String functions
ParagraphFormat(string)
| Parameter | Description |
|---|---|
|
string |
A string or a variable that contains one |
This function is useful for displaying data entered in textarea fields.
<h3>ParagraphFormat Example</h3>
<p>Enter text into this textarea, and see it returned as HTML.
<cfif IsDefined("FORM.myTextArea")>
<p>Your text area, formatted
<p><cfoutput>#ParagraphFormat(FORM.myTextArea)#</cfoutput>
</cfif>
<!--- use #Chr(10)##Chr(13)# to simulate a line feed/carriage
return combination; i.e, a return --->
<form action = "paragraphformat.cfm">
<textArea name = "MyTextArea" cols = "35" ROWS = 8>
This is sample text and you see how it scrolls
<cfoutput>#Chr(10)##Chr(13)#</cfoutput>
From one line
<cfoutput>#Chr(10)##Chr(13)##Chr(10)##Chr(13)#</cfoutput>
to the next
</textArea>
<input type = "Submit" name = "Show me the HTML version">
</form>
ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting
Version 7
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000592.htm
Comments
pete_freitag said on Apr 26, 2005 at 1:50 PM : No screen name said on May 7, 2006 at 8:26 PM : rubblemasta said on May 15, 2006 at 8:35 AM : sthompson said on Apr 10, 2007 at 10:23 AM : Daniel Stockman said on Sep 6, 2007 at 4:24 PM :