Aion-Format
view release on metacpan or search on metacpan
lib/Aion/Format/Html.pm view on Meta::CPAN
1059106010611062106310641065106610671068106910701071107210731074107510761077107810791080
thead
=> _set(
qw/table/
),
tbody
=> _set(
qw/table/
),
tfoot
=> _set(
qw/table/
),
tr
=> _set(
qw/table thead tbody tfoot caption/
),
td
=> _set(
qw/table thead tbody tfoot caption/
),
th
=> _set(
qw/table thead tbody tfoot caption/
),
dt
=> _set(
qw/dl/
),
dd
=> _set(
qw/dl/
),
rt
=> _set(
qw/ruby/
),
rp
=> _set(
qw/ruby/
),
option
=> _set(
qw/optgroup select/
),
optgroup
=> _set(
qw/select/
),
);
# <tr> закрывает открытые <td> и <th> и <tr>
our
%TOP_NEW_TAG
= (
head
=> _set(
qw/body/
),
tr
=> _set(
qw/tr thead tbody tfoot/
),
td
=> _set(
qw/tr thead tbody tfoot td th/
),
th
=> _set(
qw/tr thead tbody tfoot td th/
),
col
=> _set(
qw/tr thead tbody tfoot td th colgroup/
),
colgroup
=> _set(
qw/thead tbody tfoot caption colgroup/
),
lib/Aion/Format/Html.pm view on Meta::CPAN
130213031304130513061307130813091310131113121313131413151316131713181319132013211322
| (?<nbsp> \xa0)
}{
$to
->()}genisx;
$_
}
# Ð’Ñе, кроме запрещённых:
# applet, script, style, embed, object, param,
# video, audio, source, track, frame, frameset, iframe, comment
# html, head, body, title, meta, base, basefont, bgsound, link
# form, keygen, output, textarea, select, option, optgroup, legend, label, input
# plaintext, xmp
# Ртак же удалÑет атрибуты начинающиеÑÑ Ð½Ð° "on", name, for, formaction и др..
my
%SAFE_TAG
=
map
{
$_
=>1} qw/
a
abbr
acronym
address
area
article
( run in 0.384 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )