p5-HTML-Truncate - Truncate HTML by character count while preserving well-formedness

Property Value
Distribution FreeBSD 11
Repository FreeBSD Ports Latest amd64
Package filename p5-HTML-Truncate-0.20_1.txz
Package name p5-HTML-Truncate
Package version 0.20
Package release 1
Package architecture amd64
Package type txz
Category perl5 textproc www
Homepage https://metacpan.org/release/HTML-Truncate
License -
Maintainer perl@FreeBSD.org
Download size 13.35 KB
Installed size 25.51 KB
When working with text it is convenient and common to want to truncate
strings to make them fit a desired context. E.g., you might have a menu
that is only 100px wide and prefer text doesn't wrap so you'd truncate
it around 15-30 characters, depending on preference and typeface size.
This is trivial with plain text and substr but with HTML it is somewhat
difficult because whitespace has fluid significance and open tags that
are not properly closed destroy well-formedness and can wreck an entire
HTML::Truncate attempts to account for those two problems by padding
truncation for spacing and entities and closing any tags that remain
open at the point of truncation.
WWW: https://metacpan.org/release/HTML-Truncate


Package Version Architecture Repository
p5-HTML-Truncate-0.20_1.txz 0.20 i386 FreeBSD Ports Quarterly
p5-HTML-Truncate-0.20_1.txz 0.20 amd64 FreeBSD Ports Quarterly
p5-HTML-Truncate-0.20_1.txz 0.20 i386 FreeBSD Ports Latest
p5-HTML-Truncate - - -


Name Value
p5-HTML-Parser = 3.72
p5-HTML-Tagset = 3.20_1
perl5 = 5.28.1_1


Type URL
Mirror pkg.freebsd.org
Binary Package p5-HTML-Truncate-0.20_1.txz
Source Package textproc/p5-HTML-Truncate

Install Howto

Install p5-HTML-Truncate txz package:

# pkg install p5-HTML-Truncate

See Also

Package Description
p5-HTML-Widgets-SelectLayers-0.07_2.txz Implements an HTML widget with multiple layers
p5-HTML-WikiConverter-0.68_1.txz HTML to wiki markup converter
p5-HTML-WikiConverter-DokuWiki-0.53_1.txz Convert HTML to DokuWiki markup
p5-HTML-WikiConverter-GoogleCode-0.12_1.txz Convert HTML to Google Code wiki markup
p5-HTML-WikiConverter-Kwiki-0.51_1.txz Convert HTML to Kwiki markup
p5-HTML-WikiConverter-Markdown-0.06_1.txz Convert HTML to Markdown markup
p5-HTML-WikiConverter-MediaWiki-0.59_1.txz Convert HTML to MediaWiki markup
p5-HTML-WikiConverter-MoinMoin-0.54_1.txz Convert HTML to MoinMoin markup
p5-HTML-WikiConverter-Oddmuse-0.52_1.txz Convert HTML to Oddmuse markup
p5-HTML-WikiConverter-PbWiki-0.01_1.txz Convert HTML to PbWiki markup
p5-HTML-WikiConverter-PhpWiki-0.51_1.txz Convert HTML to PhpWiki markup
p5-HTML-WikiConverter-PmWiki-0.51_1.txz Convert HTML to PmWiki markup
p5-HTML-WikiConverter-SnipSnap-0.50_1.txz Convert HTML to SnipSnap markup
p5-HTML-WikiConverter-Socialtext-0.03_1.txz Convert HTML to Socialtext markup
p5-HTML-WikiConverter-TikiWiki-0.50_1.txz Convert HTML to TikiWiki markup