全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: libhtml-truncate-perl  ]

套件:libhtml-truncate-perl(0.20-2)

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 17。7 kB42。0 kB [檔案列表]