Difference between revisions of "JHtmlString"
From Joomla! Documentation
(Layout updates) |
m (→User contributed notes: bad link repair) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | =={{JVer|11.1}} JHtmlString== | ||
+ | ===Description=== | ||
+ | {{Description:JHtmlString}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JHtmlString|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JHtmlString|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
+ | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
+ | |public static | ||
|[[JHtmlString::abridge/11.1|abridge]] | |[[JHtmlString::abridge/11.1|abridge]] | ||
|Abridges text strings over the specified character limit. | |Abridges text strings over the specified character limit. | ||
|- | |- | ||
+ | |public static | ||
|[[JHtmlString::truncate/11.1|truncate]] | |[[JHtmlString::truncate/11.1|truncate]] | ||
|Truncates text blocks over the specified character limit and closes all open HTML tags. | |Truncates text blocks over the specified character limit and closes all open HTML tags. | ||
|- | |- | ||
|} | |} | ||
+ | * '''Defined in''' libraries/joomla/html/html/string.php | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.html.html.string' );</source> | <source lang="php">jimport( 'joomla.html.html.string' );</source> | ||
===See also=== | ===See also=== | ||
− | * JHtmlString source code | + | * {{JVer|11.1}} '''JHtmlString source code''' on [[jplatform:html/html/string.php|BitBucket]] |
− | * [[JHtmlString|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Html/11.1|Html]] |
+ | * [[JHtmlString|Other versions of JHtmlString]] | ||
{{SeeAlso:JHtmlString}} | {{SeeAlso:JHtmlString}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JHtmlString|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JHtmlString|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
− | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
Line 41: | Line 41: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JHtmlString]]</noinclude> | + | <noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JHtmlString]]</noinclude> |
Revision as of 13:53, 29 August 2012
The "API17" 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.
JHtmlString[edit]
Description[edit]
Template:Description:JHtmlString [Edit Descripton]
Methods[edit]
Visibility | Method name | Description |
---|---|---|
public static | abridge | Abridges text strings over the specified character limit. |
public static | truncate | Truncates text blocks over the specified character limit and closes all open HTML tags. |
- Defined in libraries/joomla/html/html/string.php
Importing[edit]
jimport( 'joomla.html.html.string' );
See also[edit]
- JHtmlString source code on BitBucket
- Subpackage Html
- Other versions of JHtmlString
Template:SeeAlso:JHtmlString [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />