Next:
Yawns::Formatters::HTML
Previous:
Yawns::Formatters
 [Table of Contents]

Yawns::Formatters::BBCode



NAME

Yawns::Formatters::BBCode - A module for formatting BBCode text into HTML

SYNOPSIS

    #!/usr/bin/perl -w

    use Yawns::Formatters::BBCode;
    use strict;

    # Load the original
    my $html     = Yawns::Formatters::BBCode->new( text=> 'Some text\nhere');

    # Now the accessors.
    my $preview  = $html->getPreview();
    my $original = $html->getOriginal();

DESCRIPTION

This module contains code for formatting user submitted text in BBCode into HTML.

This is used for comment posting, and weblog entry creation.

new

  Create a new instance of this object.

getOriginal

  Return the original text which was entered.

getPreview

  Return the content the user submitted in a format suitable
 for preview-display.

AUTHOR

Steve Kemp

http://www.steve.org.uk/

LICENSE

Copyright (c) 2007 by Steve Kemp. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.


[Top] Generated by HTML::FromPod 0.49 on Fri Nov 21 03:03:57 2008