C# Class TextHelper.SimpleFormatter

Mostrar archivo Open project: tylermercier/TextHelper

Public Methods

Method Description
ToSimpleFormat ( this text ) : string

Returns text transformed into HTML using simple formatting rules. Two or more consecutive newlines(\n\n) are considered as a paragraph and wrapped in <p> tags. One newline (\n) is considered as a linebreak and a <br /> tag is appended. This method does not remove the newlines from the text.

Method Details

ToSimpleFormat() public static method

Returns text transformed into HTML using simple formatting rules. Two or more consecutive newlines(\n\n) are considered as a paragraph and wrapped in <p> tags. One newline (\n) is considered as a linebreak and a <br /> tag is appended. This method does not remove the newlines from the text.
public static ToSimpleFormat ( this text ) : string
text this
return string