toutes les options
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Paquet source : libhtml-truncate-perl  ]

Paquet : libhtml-truncate-perl (0.20-2)

Liens pour libhtml-truncate-perl

Screenshot

Ressources Debian :

Télécharger le paquet source libhtml-truncate-perl :

Responsables :

Ressources externes :

Paquets similaires :

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.

Étiquettes: Développement de logiciel: Programmation Perl, Bibliothèques, Mis en œuvre en: Perl

Autres paquets associés à libhtml-truncate-perl

  • dépendances
  • recommandations
  • suggestions
  • enhances

Télécharger libhtml-truncate-perl

Télécharger pour toutes les architectures proposées
Architecture Taille du paquet Espace occupé une fois installé Fichiers
all 17,7 ko42,0 ko [liste des fichiers]