Overview

Namespaces

  • None
  • Xmf
    • Database
    • Module
      • Helper
    • Template
  • Xoops
    • Auth
    • Core
      • Cache
      • Database
        • Logging
        • Schema
      • Exception
      • Handler
        • Scheme
      • Kernel
        • Dtype
        • Handlers
        • Model
      • Lists
      • Locale
        • Punic
      • Service
        • Contract
      • Session
      • Text
        • Sanitizer
          • Extensions
      • Theme
        • Plugins
    • Form
    • Html
    • Locale
    • Module
      • Helper
      • Plugin

Classes

  • Debug
  • FilterInput
  • Highlighter
  • Language
  • Loader
  • Metagen
  • Request
  • Utilities
  • Yaml
  • Overview
  • Namespace
  • Class
  • Tree

Class Utilities

Utilities

Namespace: Xmf
Package: Xmf
Category: Xmf\Module\Utilities
Copyright: 2011-2013 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: trabis lusopoemas@gmail.com
Version: Release: 1.0
Since: 1.0
Link: http://xoops.org
Located at oops_lib/Xmf/Utilities.php
Methods summary
public static string
# purifyText( string $text, boolean $keyword = false )

purifyText

purifyText

Parameters

$text
text to clean
$keyword
replace some punctuation with white space

Returns

string
cleaned text
public static string
# html2text( string $document )

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

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

$document
HTML to be converted

Returns

string
Text version of $documnent parameter
API documentation generated by ApiGen