This module provides bridge between html5lib library and Drupal, so that features of html5lib can be used in Drupal.
For using this module, just copy the HTML5 folder from HTML5Lib Library and put it in sites/all/libraries folder and rename HTML5 folder to html5lib.
After this enable the module.
How to use this Module:
You can use Library function to traverse html, like below.
HTML5_Parser::parse($text)
$text : HTML to parse
return : DOMDocument of parsed document
HTML5_Parser::parseFragment($text, $context)
$text : HTML to parse
$context : String name of context element
return : DOMDocument of parsed document
Project information
- Module categories: Content Editing Experience
- Created by manojbisht_drupal on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 29 Sep 2016 at 05:38 UTC