![]() |
![]()
| ![]() |
![]()
NAMEKinoSearch1::Highlight::SimpleHTMLFormatter - surround highlight bits with tags SYNOPSISmy $formatter = KinoSearch1::Highlight::SimpleHTMLFormatter->new( pre_tag => '<i>', post_tag => '</i>', ); # returns "<i>foo</i>" my $highlighted = $formatter->highlight("foo"); DESCRIPTIONThis subclass of KinoSearch1::Highlight::Formatter highlights text by surrounding it with HTML "strong" tags. METHODSnewConstructor. Takes hash-style params. my $formatter = KinoSearch1::Highlight::SimpleHTMLFormatter->new( pre_tag => '*', # default: '<strong>' post_tag => '*', # default: '</strong>' );
COPYRIGHTCopyright 2006-2010 Marvin Humphrey LICENSE, DISCLAIMER, BUGS, etc.See KinoSearch1 version 1.01.
|