| Next: Yawns::Formatters::Text | Previous: Yawns::Formatters::BBCode | [Table of Contents] |
Yawns::Formatters::HTML - A module for formatting HTML text into HTML
#!/usr/bin/perl -w
use Yawns::Formatters::HTML;
use strict;
# Load the original
my $html = Yawns::Formatters::HTML->new( text=> 'Some text\nhere');
# Now the accessors.
my $preview = $html->getPreview();
my $original = $html->getOriginal();
This module contains code for formatting user submitted text in HTML into HTML - with filtering.
This is used for comment posting, and weblog entry creation.
Create a new instance of this object.
Return the original text which was entered.
Return the content the user submitted in a format suitable for preview-display.
Steve Kemp
http://www.steve.org.uk/
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.