Documentation

ParserInterface

Transforms an untrusted HTML input string into a DOM tree.

Tags
author

Titouan Galopin galopintitouan@gmail.com

Table of Contents

Methods

parse()  : Node|DOMNode|null
Parse a given string and returns a DOMNode tree.

Methods

parse()

Parse a given string and returns a DOMNode tree.

public parse(string $html) : Node|DOMNode|null

This method must return null if the string cannot be parsed as HTML.

Parameters
$html : string
Return values
Node|DOMNode|null

        
On this page

Search results