1KinoSearch1::Highlight:U:sSeirmpCloenHtTrMiKLbiFunotoreSmdeaatPrtecerhrl1(:3D:)oHciugmhelnitgahtti:o:nSimpleHTMLFormatter(3)
2
3
4
6 KinoSearch1::Highlight::SimpleHTMLFormatter - surround highlight bits
7 with tags
8
10 my $formatter = KinoSearch1::Highlight::SimpleHTMLFormatter->new(
11 pre_tag => '<i>',
12 post_tag => '</i>',
13 );
14
15 # returns "<i>foo</i>"
16 my $highlighted = $formatter->highlight("foo");
17
19 This subclass of KinoSearch1::Highlight::Formatter highlights text by
20 surrounding it with HTML "strong" tags.
21
23 new
24 Constructor. Takes hash-style params.
25
26 my $formatter = KinoSearch1::Highlight::SimpleHTMLFormatter->new(
27 pre_tag => '*', # default: '<strong>'
28 post_tag => '*', # default: '</strong>'
29 );
30
31 · pre_tag - a string which will be inserted immediately prior to the
32 highlightable text, typically to accentuate it. If you don't want
33 highlighting, set both "pre_tag" and "post_tag" to ''.
34
35 · post_tag - a string which will be inserted immediately after the
36 highlightable text.
37
39 Copyright 2006-2010 Marvin Humphrey
40
42 See KinoSearch1 version 1.00.
43
44
45
46perl v5.12.2 Ki2n0o1S0e-a1r0c-h015::Highlight::SimpleHTMLFormatter(3)