XOOPS  2.6.0
Xmf\Utilities Class Reference

Static Public Member Functions

static html2text ($document)
 
static purifyText ($text, $keyword=false)
 

Detailed Description

Definition at line 26 of file Utilities.php.

Member Function Documentation

static Xmf\Utilities::html2text (   $document)
static

html2text This will remove HTML tags, javascript sections and white space. It will also convert some common HTML entities to their text equivalent. Credits to newbb2

Parameters
string$documentHTML to be converted
Returns
string Text version of $documnent parameter

Definition at line 79 of file Utilities.php.

References $search, and $text.

static Xmf\Utilities::purifyText (   $text,
  $keyword = false 
)
static

purifyText

Parameters
string$texttext to clean
boolean$keywordreplace some punctuation with white space
Returns
string cleaned text

Definition at line 37 of file Utilities.php.

References $myts, $text, and MyTextSanitizer\getInstance().

Here is the call graph for this function:


The documentation for this class was generated from the following file: