Actions

API17

Difference between revisions of "JHtmlString"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
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>
{{Description:JHtmlString}}
 
===Defined in===
 
libraries/joomla/html/html/string.php
 
* see source code in [[jplatform:html/html/string.php|BitBucket]]
 
===Subpackage===
 
[[Subpackage Html/11.1|Html]]
 
===Extends===
 
===Extended by===
 
 
===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 in [[jplatform:html/html/string.php|BitBucket]]
+
* {{JVer|11.1}} '''JHtmlString source code''' on [[jplatform:html/html/string.php|BitBucket]]
* [[JHtmlString|Other versions of this class]]
+
* {{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>
===Examples===
+
===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]][[Category:Platform 11.1]][[Category:JHtmlString]]</noinclude>

Revision as of 17:04, 27 April 2011

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JHtmlString

Description

Contains methods for working with strings of HTML text. [Edit Descripton]

Methods

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

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

See also

SeeAlso:JHtmlString [Edit See Also]

User contributed notes

<CodeExamplesForm />