API16

JHtmlString

From Joomla! Documentation

Revision as of 14:23, 16 February 2011 by Dextercowley (talk | contribs) (fix importing. can't use standard jimport because class is JHtmlString, not JString)

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

[Edit Descripton] Template:Description:JHtmlString

Defined in[edit]

libraries/joomla/html/html/string.php

Methods[edit]

Method name Description
truncate Truncates text blocks over the specified character limit. The behavior will not truncate an individual word, it will find the first space that is within the limit and truncate at that point. This method is UTF-8 safe.
abridge Abridges text strings over the specified character limit. The behavior will insert an ellipsis into the text replacing a section of variable size to ensure the string does not exceed the defined maximum length. This method is UTF-8 safe.

Importing[edit]

JLoader::register('JHtmlString', JPATH_LIBRARIES.'/joomla/html/html/string.php');

[Edit See Also] Template:SeeAlso:JHtmlString

Examples[edit]

<CodeExamplesForm />