BBCode::Parser

BBCode::Parser is a Perl module that parses BBCode tags.
Download

BBCode::Parser Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Donald King
  • Publisher web site:
  • http://search.cpan.org/~dlking/BBCode-Parser-0.34/lib/BBCode/Parser.pm

BBCode::Parser Tags


BBCode::Parser Description

BBCode::Parser is a Perl module that parses BBCode tags. BBCode::Parser is a Perl module that parses BBCode tags.BBCode is a simplified markup language used in several online forums and bulletin boards. It originated with phpBB, and remains most popular among applications written in PHP. Generally, users author their posts in BBCode, and the forum converts it to a permitted subset of well-formed HTML.BBCode::Parser is a proper recursive parser for BBCode-formatted text.OVERVIEWA BBCode::Parser object stores various settings that affect the parsing process. Simple settings are typically set when the parser is created using new(), but they can be queried using get() and altered using set().See "SETTINGS" for more information.In addition to the simple settings, specific BBCode tags (or classes of tags) can be permitted or forbidden, using permit() and forbid() respectively. By default, the only forbidden tag is , which is normally a security violation if permitted.See "CLASSES" for a list of tag classes.Once the parser has been configured appropriately, parse trees can be created using the parse() method. The parse tree will consist of objects derived from BBCode::Tag; the root of the tree will be a BBCode::Body object.Converting the parse tree to HTML is quite simple: call toHTML() on the root of the tree. Likewise, the parse tree can be converted back to BBCode by calling toBBCode(). See "METHODS" in BBCode::Tag to find out what other output methods are available. Requirements: · Perl


BBCode::Parser Related Software