C# Class TextHelper.SimpleFormatter

Afficher le fichier Open project: tylermercier/TextHelper

Méthodes publiques

Méthode 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 méthode

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
Résultat string