How to Install and Uninstall libhtml-truncate-perl Package on Ubuntu 21.04 (Hirsute Hippo)
Last updated: November 21,2024
1. Install "libhtml-truncate-perl" package
Here is a brief guide to show you how to install libhtml-truncate-perl on Ubuntu 21.04 (Hirsute Hippo)
$
sudo apt update
Copied
$
sudo apt install
libhtml-truncate-perl
Copied
2. Uninstall "libhtml-truncate-perl" package
This guide covers the steps necessary to uninstall libhtml-truncate-perl on Ubuntu 21.04 (Hirsute Hippo):
$
sudo apt remove
libhtml-truncate-perl
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the libhtml-truncate-perl package on Ubuntu 21.04 (Hirsute Hippo)
Package: libhtml-truncate-perl
Architecture: all
Version: 0.20-2
Priority: optional
Section: universe/perl
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 39
Depends: perl, libhtml-parser-perl, libhtml-tagset-perl
Filename: pool/universe/libh/libhtml-truncate-perl/libhtml-truncate-perl_0.20-2_all.deb
Size: 15210
MD5sum: 67b64219029ba1c1167b94874272d20f
SHA1: 51c86117a34f45425398c8813026d951d20c0381
SHA256: 595f2d67ae8d0d29f22d499658f362f4e3dd9a11bf52d437d406f262460e63dd
SHA512: 6aec9fe3ece175f6dc56bf1e2a7c2429b9c3f179580979e90807d6099a808646c4435593d6d66f74584f32233e62ba729f359cff845af692839d8803f8748a4a
Homepage: https://metacpan.org/release/HTML-Truncate
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
Architecture: all
Version: 0.20-2
Priority: optional
Section: universe/perl
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 39
Depends: perl, libhtml-parser-perl, libhtml-tagset-perl
Filename: pool/universe/libh/libhtml-truncate-perl/libhtml-truncate-perl_0.20-2_all.deb
Size: 15210
MD5sum: 67b64219029ba1c1167b94874272d20f
SHA1: 51c86117a34f45425398c8813026d951d20c0381
SHA256: 595f2d67ae8d0d29f22d499658f362f4e3dd9a11bf52d437d406f262460e63dd
SHA512: 6aec9fe3ece175f6dc56bf1e2a7c2429b9c3f179580979e90807d6099a808646c4435593d6d66f74584f32233e62ba729f359cff845af692839d8803f8748a4a
Homepage: https://metacpan.org/release/HTML-Truncate
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