Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Html
+ Graphe d'héritage de Html:

Fonctions membres publiques

 parse ($input)
 
- Fonctions membres publiques hérités de Parser
 parse ($input)
 

Fonctions membres protégées

 process ($input)
 
- Fonctions membres protégées hérités de Parser
 process ($input)
 

Fonctions membres privées

 removeBlocks ($input, $startTag, $endTag)
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de Parser
static getInstance ($format)
 
- Attributs protégés statiques hérités de Parser
static $instances = array()
 

Description détaillée

HTML Parser class for the Finder indexer package.

Depuis
2.5

Documentation des fonctions membres

◆ parse()

parse (   $input)

Method to parse input and extract the plain text. Because this method is called from both inside and outside the indexer, it needs to be able to batch out its parsing functionality to deal with the inefficiencies of regular expressions. We will parse recursively in 2KB chunks.

Paramètres
string$inputThe input to parse.
Renvoie
string The plain text input.
Depuis
2.5

Références $input, et ENT_QUOTES.

◆ process()

process (   $input)
protected

Method to process HTML input and extract the plain text.

Paramètres
string$inputThe input to process.
Renvoie
string The plain text input.
Depuis
2.5

Références $input.

◆ removeBlocks()

removeBlocks (   $input,
  $startTag,
  $endTag 
)
private

Method to remove blocks of text between a start and an end tag. Each block removed is effectively replaced by a single space.

Note: The start tag and the end tag must be different. Note: Blocks must not be nested. Note: This method will function correctly with multi-byte strings.

Paramètres
string$inputString to be processed.
string$startTagString representing the start tag.
string$endTagString representing the end tag.
Renvoie
string with blocks removed.
Depuis
3.4

Références $input, Joomla\Database\Query\$offset, $return, et $start.


La documentation de cette classe a été générée à partir du fichier suivant :