C# Class BaconBuilder.Model.TextToHtmlParser

Class used to convert a plain text string into html content.
Inheritance: Parser
Mostra file Open project: Revelations/BaconApp

Public Methods

Method Description
GenerateContent ( string bodyContent ) : string
Parse ( string bodyContent ) : string
TextToHtmlParser ( ) : System.Text

Constructor for this class. Populates the dictionary.

Protected Methods

Method Description
InitialiseDictionary ( ) : void

Populates the dictionary with a set of find/replace key value pairs appropriate for converting plain text content and 'bacon psuedo tags' to html content. Rules are parsed in the order they are added here.

Method Details

GenerateContent() public method

public GenerateContent ( string bodyContent ) : string
bodyContent string
return string

InitialiseDictionary() protected final method

Populates the dictionary with a set of find/replace key value pairs appropriate for converting plain text content and 'bacon psuedo tags' to html content. Rules are parsed in the order they are added here.
protected final InitialiseDictionary ( ) : void
return void

Parse() public method

public Parse ( string bodyContent ) : string
bodyContent string
return string

TextToHtmlParser() public method

Constructor for this class. Populates the dictionary.
public TextToHtmlParser ( ) : System.Text
return System.Text