Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core_html2text Class Reference

Wrapper for Html2Text. More...

Inheritance diagram for core_html2text:

Public Member Functions

 __construct ($html='', $options=array())
 Constructor.
 

Protected Member Functions

 strtoupper ($str)
 Strtoupper multibyte wrapper function with HTML entities handling.
 

Detailed Description

Wrapper for Html2Text.

This wrapper allows us to modify the upstream library without hacking it too much.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_html2text::__construct ( $html = '',
$options = array() )

Constructor.

If the HTML source string (or file) is supplied, the class will instantiate with that source propagated, all that has to be done it to call get_text().

Parameters
string$htmlSource HTML
array$optionsSet configuration options

Member Function Documentation

◆ strtoupper()

core_html2text::strtoupper ( $str)
protected

Strtoupper multibyte wrapper function with HTML entities handling.

Parameters
string$strText to convert
Return values
stringConverted text

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