mojomojo::formatter::defang(3pm) [debian man page]
MojoMojo::Formatter::Defang(3pm) User Contributed Perl Documentation MojoMojo::Formatter::Defang(3pm)NAME
MojoMojo::Formatter::Defang - Scrub user HTML and XSS
DESCRIPTION
This formatter makes sure only a safe range of tags are allowed, using MojoMojo::Defang; It also tries to remove XSS attempts.
METHODS
format_content_order
Format order can be 1-99. The Defang formatter runs on 16, just after the main formatter, in order to catch direct user input. Defang
trusts the main formatter and all subsequently ran plugins to not output unsafe HTML.
defang_tags_callback
Callback for custom handling specific HTML tags
defang_url_callback
Callback for custom handling URLs in HTML attributes as well as styletag/attribute declarations
defang_css_callback
Callback for custom handling style tags/attributes.
defang_attribs_callback
Callback for custom handling HTML tag attributes.
format_content
Calls the formatter. Takes a ref to the content as well as the context object.
SEE ALSO
MojoMojo, Module::Pluggable::Ordered, MojoMojo::Defang
AUTHORS
Marcus Ramberg <mramberg@cpan.org>
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2010-05-23 MojoMojo::Formatter::Defang(3pm)
Check Out this Related Man Page
MojoMojo::Formatter::Textile(3pm) User Contributed Perl Documentation MojoMojo::Formatter::Textile(3pm)NAME
MojoMojo::Formatter::Textile - Texile+SmartyPants formatting for your content
DESCRIPTION
This formatter processes content using Text::Textile (a syntax for writing human-friendly formatted text), then post-processes that using
Text::SmartyPants (which transforms plain ASCII punctuation characters into "smart" typographic punctuation HTML entities, such as smart
quotes or the ellipsis character).
Textile reference: <http://hobix.com/textile/>
METHODS
main_format_content
Calls the formatter. Takes a ref to the content as well as the context object. Note that this is different from the format_content method
of non-main formatters. This is because we don't want all main formatters to be called when iterating over pluggable modules in
MojoMojo::Schema::ResultSet::Content::format_content.
"main_format_content" will only be called by <MojoMojo::Formatter::Main>.
SEE ALSO
MojoMojo, Module::Pluggable::Ordered, Text::Textile
AUTHORS
Marcus Ramberg <mramberg@cpan.org>
LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2010-04-07 MojoMojo::Formatter::Textile(3pm)
I am cleaning up HTML with sed. With the regexp
<a name="+"></a><h>*<span class="mw-headline" >+</span></h>
I can find the tags I need. But when I place them in a sed command, sed fails. So I started building up from a smaller command. This is where I am now:
sed -r -e s/"<a... (3 Replies)
Following is input:
<P
align="justify"
><FONT size="+1" color="#221E1F">the tiny bundles of hairs that protrude from them. Waves in the fluid of the inner ear stimulate the hair cells. Like the rods and cones in the eye, the hair cells convert this physical stimulation into neural im<FONT... (2 Replies)
I need help with a script that will remove all HTML tags from an HTML document and remove any consecutive duplicate lines, and save it as a text document. The user should have the option of including the name of an html file as an argument for the script, but if none is provided, then the script... (7 Replies)