alle opties
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Bron: libhtml-truncate-perl  ]

Pakket: libhtml-truncate-perl (0.20-3)

Verwijzigingen voor libhtml-truncate-perl

Screenshot

Debian bronnen:

Het bronpakket libhtml-truncate-perl downloaden:

Beheerders:

Externe bronnen:

Vergelijkbare pakketten:

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.

Tags: Softwareontwikkeling: Ontwikkelen in Perl, Bibliotheken, Implemented in: Perl

Andere aan libhtml-truncate-perl gerelateerde pakketten

  • depends
  • recommends
  • suggests
  • enhances

libhtml-truncate-perl downloaden

Pakket downloaden voor alle beschikbare platforms
Platform Pakketgrootte Geïnstalleerde grootte Bestanden
all 18,1 kB42,0 kB [overzicht]