PHP Class Sulu\Bundle\MarkupBundle\Markup\HtmlMarkupParser

Inheritance: implements Sulu\Bundle\MarkupBundle\Markup\MarkupParserInterface
Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Bundle\MarkupBundle\Tag\TagRegistryInterface $tagRegistry, string $namespace = 'sulu' )
parse ( $content, $locale )
validate ( $content, $locale )

Private Methods

Method Description
getAttributes ( string $tag ) : array Returns attributes of given html-tag.
getTags ( string $content ) : array Returns found tags and their attributes.

Method Details

__construct() public method

public __construct ( Sulu\Bundle\MarkupBundle\Tag\TagRegistryInterface $tagRegistry, string $namespace = 'sulu' )
$tagRegistry Sulu\Bundle\MarkupBundle\Tag\TagRegistryInterface
$namespace string

parse() public method

public parse ( $content, $locale )

validate() public method

public validate ( $content, $locale )