NAME

PFT::Text - Wrapper around content text

SYNOPSIS

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

DESCRIPTION

Semantic wrapper around content text.

It knows how the text should be parsed, abstracts away inner data retrieval.

The constructor expects a Content::Page object as parameter.

Properties

html

Returns the content in HTML form.

The conetnet will retain symbol placeholders. See the html_resolved method.

symbols
html_resolved

Given an ordered list of HTML representation of symbols, returns the complete HTML with symbol placeholders replaced.

The strings must be ordered consistently with a previoulsy retrieved list of symbols (wretrieved with the symbols method.

Something like:

$text->html_resolved(map resolve($_), $text->symbols)