| ColdFusion MX | ||
| 目 次 > CFML リファレンス > ColdFusion 関数 > ParagraphFormat |
|
|
|
|
||
文字列内の文字を次のように置き換えます。
文字が置換された文字列のコピー
ParagraphFormat(string)
パラメータ |
説明 |
|---|---|
string |
文字列、または文字列を含んでいる変数です。 |
この関数は、textarea フィールドに入力されたデータを表示するときに役立ちます。
<h3>ParagraphFormat の例</h3>
<p>このテキスト領域にテキストを入力すると、HTML に変換したテキストが表示されます。
<cfif IsDefined("FORM.myTextArea")>
<p>テキスト領域の入力内容を変換した結果 :
<p><cfoutput>#ParagraphFormat(FORM.myTextArea)#</cfoutput>
</cfif>
<!--- #Chr(10)##Chr(13)# を使用して、改行 (LF/CR) を
シミュレーションします。 --->
<form action = "paragraphformat.cfm">
<textArea name = "MyTextArea" cols = "35" ROWS = 8>
これはサンプルテキストです。<cfoutput>#Chr(10)##Chr(13)#</cfoutput>複数行のテキストの<cfoutput>#Chr(10)##Chr(13)##Chr(10)##Chr(13)#</cfoutput>スクロールが確認できます。
</textArea>
<input type = "Submit" name = "HTML に変換して表示">
</form>
|
|
||
| 目 次 > CFML リファレンス > ColdFusion 関数 > ParagraphFormat |
|
|
このページに新しいコメントが追加された場合に、電子メールでの通知を希望する。 | コメントレポート
現在のページ: http://livedocs.adobe.com/coldfusion/6.1_jp/htmldocs2/functa49.htm