1. html-тег должен быть так же разнесён на страницы.
NAME
Aion::Format::Html - Perl extension for formatting HTML
SYNOPSIS
use Aion::Format::Html;
from_html "<b>!</b>" # => !
to_html "<a>" # => <a>
DESCRIPION
Perl extension for formatting HTML-documents.
SUBROUTINES
from_html ($html)
Converts html to text.
from_html "Basic is <b>superlanguage</b>!<br>" # => Basic is superlanguage!\n
to_html ($html)
Escapes html characters.
safe_html ($html)
Cuts off dangerous and unknown tags from html, and unknown attributes from known tags.
safe_html "-<em>-</em><br>-" # => -<em>-</em><br>-
safe_html "-<em onclick=' '>-</em><br onmouseout=1>-" # => -<em>-</em><br>-
safe_html "-<xx24>-</xx24>" # => --
safe_html "-< applet >-</ applet >" # => -< applet >-
split_on_pages ($html, $symbols_on_page, $by)
Breaks text into pages taking into account html tags.
[split_on_pages "Alice in wonderland. This is book", 17] # --> ["Alice in wonderland. ", "This is book"]
AUTHOR
Yaroslav O. Kosmina Lmailto:darviarush@mail.ru
LICENSE
⚖ GPLv3
COPYRIGHT
The Aion::Format::Html module is copyright © 2023 Yaroslav O. Kosmina. Rusland. All rights reserved.
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 1127:
=pod directives shouldn't be over one line long! Ignoring all 2 lines of content
- Around line 1128:
Non-ASCII character seen before =encoding in 'Разбивает'. Assuming UTF-8