全部搜索项
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 源代码: libhtml-truncate-perl  ]

软件包:libhtml-truncate-perl(0.20-3)

libhtml-truncate-perl 的相关链接

Screenshot

Debian 的资源:

下载源码包 libhtml-truncate-perl

维护小组:

外部的资源:

相似软件包:

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.

标签: 软件开发: Perl 开发, 函数库, 实做语言: Perl

其他与 libhtml-truncate-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 libhtml-truncate-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 18.1 kB42.0 kB [文件列表]