C# Class HTML2Markup.Parser

Mostrar archivo Open project: benogle/html2markup

Public Methods

Method Description
HTML2Markup ( string html ) : string
Parser ( ) : System

Protected Methods

Method Description
AddOutput ( string s ) : void
AddOutput ( string s, int numNewLines, bool before ) : void
ConvertStart ( ) : void
HandleElementEnd ( ParserNode node ) : void
HandleElementStart ( ParserNode node ) : void
HandleText ( ParserNode node ) : void
ProcessGlyphs ( string s ) : string
RepeatStr ( string s, int times ) : string

Will repeat string $s $times times. i.e. RepeatStr('#', 4); --> '####'

Private Methods

Method Description
AppendNewlines ( int num ) : int

appends newlines to the end of the output. Dont call this. Call AddOutput().

Method Details

AddOutput() protected method

protected AddOutput ( string s ) : void
s string
return void

AddOutput() protected method

protected AddOutput ( string s, int numNewLines, bool before ) : void
s string
numNewLines int
before bool
return void

ConvertStart() protected method

protected ConvertStart ( ) : void
return void

HTML2Markup() public method

public HTML2Markup ( string html ) : string
html string
return string

HandleElementEnd() protected method

protected HandleElementEnd ( ParserNode node ) : void
node ParserNode
return void

HandleElementStart() protected method

protected HandleElementStart ( ParserNode node ) : void
node ParserNode
return void

HandleText() protected method

protected HandleText ( ParserNode node ) : void
node ParserNode
return void

Parser() public method

public Parser ( ) : System
return System

ProcessGlyphs() protected method

protected ProcessGlyphs ( string s ) : string
s string
return string

RepeatStr() protected method

Will repeat string $s $times times. i.e. RepeatStr('#', 4); --> '####'
protected RepeatStr ( string s, int times ) : string
s string
times int
return string