Loading...
 
Skip to main content

Avoid breaking the layout when there is some very long text (ex,: URLs)

Status
Open
Subject
Avoid breaking the layout when there is some very long text (ex,: URLs)
Version
8.x
Category
  • Feature request
Feature
Theme: Look & feel, Styles, CSS, Theme Control Center
Resolution status
Duplicate
Submitted by
Marc Laporte
Lastmod by
Marc Laporte, luci
Rating
(0)
Related-to
Description
"htmlwrap() is a function which wraps HTML by breaking long words and preventing them from damaging your layout. This function will NOT insert <br /> tags every "width" characters as in the PHP wordwrap() function. HTML wraps automatically, so this function only ensures wrapping at $width characters is possible. Use in places where a page will accept user input in order to create HTML output like in forums or blog comments.


This function will not insert line breaks within HTML tags or HTML entities such as  . It treats all HTML entities as single characters, when taking them into account for string length. It will also attempt to find logical line-break insertion points (like after periods or slashes) before inserting breaks at $width characters."

http://www.greywyvern.com/code/php/htmlwrap

Importance
3
Easy to solve?
5
Priority
15
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4140
Created
Saturday 28 January, 2012 05:32:33 UTC
by Marc Laporte
LastModif
Monday 30 April, 2018 11:23:05 UTC


Show PHP error messages