API16

API16:JHtmlString

From Joomla! Documentation

Revision as of 22:48, 22 March 2010 by Doxiki (talk | contribs) (New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JHtmlString}} ===Defined in==...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[Edit Descripton] Template:Description:JHtmlString

Defined in

libraries/joomla/html/html/string.php

Methods

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

jimport( 'joomla.html.html.string' );

[Edit See Also] Template:SeeAlso:JHtmlString

Examples

<CodeExamplesForm />