Module: Raggle::HTML

Module | Raggle::HTML
In: | raggle (CVS)

Basic command-line HTML renderer.

### Methods

init_tagset render_html

### Classes and Modules

Module Raggle::HTML::Parser
Class Raggle::HTML::Renderer
Class Raggle::HTML::TagSet

### Constants

TAG_SET | = | TagSet.new

### Public Class methods

init_tagset()

initialize HTML::TAG_SET, must be called before HTML::render_html

Note: the only reason I’m doing things this way is to keep RDoc from barfing (it was doing exactly that witht he old way of initializing HTML::TAG_SET :()

render_html(source, width=72)

Render HTML for a given terminal width.

Example:

      HTML::render_html('<br/><br/>test') #=> "\n\ntest"

[Validate]