diff options
author | Yorhel <git@yorhel.nl> | 2018-01-06 12:58:21 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2018-01-06 12:58:21 +0100 |
commit | 11963a54f3e86812e9bd3f542da57d1163c9d5ff (patch) | |
tree | 80d70c4595f0b7a9bfecfb04f48fc84a1fb5b7cb /lib/VNDB/Handler/VNPage.pm | |
parent | 1ad717b9ebce12938aaa55ac17d086f69fb18fea (diff) |
Add bb2text() and use it for release notes & open graph tags
Diffstat (limited to 'lib/VNDB/Handler/VNPage.pm')
-rw-r--r-- | lib/VNDB/Handler/VNPage.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm index 2ebb42e6..0d22f256 100644 --- a/lib/VNDB/Handler/VNPage.pm +++ b/lib/VNDB/Handler/VNPage.pm @@ -344,7 +344,7 @@ sub page { my $metadata = { 'og:title' => $v->{title}, - 'og:description' => $v->{desc}, + 'og:description' => bb2text $v->{desc}, }; if($v->{image} && !$v->{img_nsfw}) { @@ -881,10 +881,7 @@ sub _release_icons { } # Notes column - # TODO: The notes text should to through a bb2html() to strip the tags. But - # showing HTML inside a 'title' attribute won't work, and bb2html() doesn't - # have a plain text output option. - _release_icon 'notes', $rel->{notes}, 'notes' if $rel->{notes}; + _release_icon 'notes', bb2text($rel->{notes}), 'notes' if $rel->{notes}; } |