<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>PARAGRAPHFORMAT</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="Description">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">PARAGRAPHFORMAT</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Description</span>
<p>
Replaces characters in a string: 
</p>
<ul>

<li>Single newline characters (CR/LF sequences) with spaces </li>

<li>Double newline characters with HTML paragraph tags (&lt;p&gt;)</li>
</ul>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Returns</span>
<p>
A copy of the string, with characters converted.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Category</span>
<p>
Display and formatting functions, String functions
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Function syntax</span><pre>ParagraphFormat(string)
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">See also</span>
<p>
StripCR
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Parameters</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Usage</span>
<p>
This function is useful for displaying data entered in textarea fields.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Example</span><pre>&lt;h3&gt;ParagraphFormat Example&lt;/h3&gt;
&lt;p&gt;Enter text into this textarea, and see it returned as HTML.
&lt;cfif IsDefined(&quot;FORM.myTextArea&quot;)&gt;
   &lt;p&gt;Your text area, formatted
   &lt;p&gt;&lt;cfoutput&gt;#ParagraphFormat(FORM.myTextArea)#&lt;/cfoutput&gt;
&lt;/cfif&gt;
&lt;!--- use #Chr(10)##Chr(13)# to simulate a line feed/carriage
return combination; i.e, a return ---&gt;
&lt;form action = &quot;paragraphformat.cfm&quot;&gt;
&lt;textArea name = &quot;MyTextArea&quot; cols = &quot;35&quot; ROWS = 8&gt;
This is sample text and you see how it scrolls
&lt;cfoutput&gt;#Chr(10)##Chr(13)#&lt;/cfoutput&gt;
From one line 
&lt;cfoutput&gt;#Chr(10)##Chr(13)##Chr(10)##Chr(13)#&lt;/cfoutput&gt;
to the next
&lt;/textArea&gt;
&lt;input type = &quot;Submit&quot; name = &quot;Show me the HTML version&quot;&gt;
&lt;/form&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="STRING">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">STRING</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>A string or a variable that contains one </p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
