1PFT::Text(3)          User Contributed Perl Documentation         PFT::Text(3)
2
3
4

NAME

6       PFT::Text - Wrapper around content text
7

SYNOPSIS

9           PFT::Text->new($page);
10

DESCRIPTION

12       Semantic wrapper around content text.
13
14       It knows how the text should be parsed, abstracts away inner data
15       retrieval.
16
17       The constructor expects a "Content::Page" object as parameter.
18
19   Properties
20       html
21        Returns the content in HTML form.
22
23        The conetnet will retain symbol placeholders. See the "html_resolved"
24        method.
25
26       symbols
27       html_resolved
28        Given an ordered list of HTML representation of symbols, returns the
29        complete HTML with symbol placeholders replaced.
30
31        The strings must be ordered consistently with a previoulsy retrieved
32        list of symbols (wretrieved with the "symbols" method.
33
34        Something like:
35
36            $text->html_resolved(map resolve($_), $text->symbols)
37
38
39
40perl v5.32.0                      2020-07-28                      PFT::Text(3)
Impressum