1KinoSearch1::Highlight:U:sSeirmpCloenHtTrMiKLbiFunotoreSmdeaatPrtecerhrl1(:3D:)oHciugmhelnitgahtti:o:nSimpleHTMLFormatter(3)
2
3
4

NAME

6       KinoSearch1::Highlight::SimpleHTMLFormatter - surround highlight bits
7       with tags
8

SYNOPSIS

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

DESCRIPTION

19       This subclass of KinoSearch1::Highlight::Formatter highlights text by
20       surrounding it with HTML "strong" tags.
21

METHODS

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

LICENSE, DISCLAIMER, BUGS, etc.

42       See KinoSearch1 version 1.01.
43
44
45
46perl v5.28.1                    Ki2n0o1S9e-a0r2c-h012::Highlight::SimpleHTMLFormatter(3)
Impressum