How to Install and Uninstall libhtml-truncate-perl Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: November 21,2024

1. Install "libhtml-truncate-perl" package

Please follow the step by step instructions below to install libhtml-truncate-perl on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install libhtml-truncate-perl

2. Uninstall "libhtml-truncate-perl" package

Here is a brief guide to show you how to uninstall libhtml-truncate-perl on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove libhtml-truncate-perl $ sudo apt autoclean && sudo apt autoremove

3. Information about the libhtml-truncate-perl package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: libhtml-truncate-perl
Priority: optional
Section: universe/perl
Installed-Size: 40
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Architecture: all
Version: 0.20-1
Depends: perl, libhtml-parser-perl, libhtml-tagset-perl
Filename: pool/universe/libh/libhtml-truncate-perl/libhtml-truncate-perl_0.20-1_all.deb
Size: 15702
MD5sum: 5b4c8ca1d7e866030fd0b217c6659f6e
SHA1: 90ebb1a2da467dee481a2d962478c3d8872d217f
SHA256: 45606ae971e8a7564b0cd05738177364f925ee52f45d4ca8f521f4dfdf39a8f5
Description-en: Perl module to truncate HTML by percentage or character count
When working with text it is 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
using 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 layout.
.
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.
Description-md5: cf5f5cc89fe6b669c488751b17201b69
Homepage: https://metacpan.org/release/HTML-Truncate
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu