[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_finder/src/Indexer/Parser/ -> Html.php (summary)

(no description)

Copyright: (C) 2011 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 158 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Html:: (3 methods):
  parse()
  process()
  removeBlocks()


Class: Html  - X-Ref

HTML Parser class for the Finder indexer package.

parse($input)   X-Ref
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: string  $input  The input to parse.
return: string  The plain text input.

process($input)   X-Ref
Method to process HTML input and extract the plain text.

param: string  $input  The input to process.
return: string  The plain text input.

removeBlocks($input, $startTag, $endTag)   X-Ref
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: string  $input     String to be processed.
param: string  $startTag  String representing the start tag.
param: string  $endTag    String representing the end tag.
return: string with blocks removed.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer