Actions

API17

Difference between revisions of "JHtmlString"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (User contributed notes: bad link repair)
(2 intermediate revisions by one 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>
{{Description:JHtmlString}}
 
===Defined in===
 
libraries/joomla/html/html/string.php
 
===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|Other versions of this class]]
+
* {{JVer|11.1}} '''JHtmlString source code''' on [[jplatform:html/html/string.php|BitBucket]]
 +
* {{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 39: 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

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 />