Overview

Packages

  • Util

Classes

  • Horde_Array
  • Horde_Array_Sort_Helper
  • Horde_Domhtml
  • Horde_String
  • Horde_Util
  • Horde_Variables
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Domhtml

Utility class to help in loading DOM data from HTML strings.

Copyright 2010-2012 Horde LLC (http://www.horde.org/)

Package: Util
Category: Horde
License: LGPL 2.1
Author: Michael Slusarz slusarz@horde.org
Located at Horde/Domhtml.php
Methods summary
public
# __construct( string $text, string $charset = null )

Constructor.

Constructor.

Parameters

$text
The text of the HTML document.
$charset
The charset of the HTML document.

Throws

Exception
public DOMElement
# getHead( )

Returns the HEAD element, or creates one if it doesn't exist.

Returns the HEAD element, or creates one if it doesn't exist.

Returns

DOMElement
HEAD element.
public string
# returnHtml( )

Returns the full HTML text in the original charset.

Returns the full HTML text in the original charset.

Returns

string
HTML text.
public string
# returnBody( )

Returns the body text in the original charset.

Returns the body text in the original charset.

Returns

string
HTML text.
Properties summary
public DOMDocument $dom

DOM object.

DOM object.

#
API documentation generated by ApiGen