ParagraphFormat
Last updated
Was this helpful?
Replaces characters in a string: Single newline characters (CR/LF sequences) with spaces and double newline characters with HTML paragraph tags
ParagraphFormat(string=[string])string
string
true
The string to format.
Inserts paragraph tags around blocks of text separated by line breaks.
text = "First paragraph.
Second paragraph.";
result = paragraphFormat( text );
writeOutput( result.contains( "<p>" ) );
Result: true
Result: true
Last updated
Was this helpful?
Was this helpful?
result = "Line one.
Line two.".paragraphFormat();
writeOutput( result.contains( "</p>" ) );
