Skip to content

SondagesPro/LS-toolsDomDocument

Repository files navigation

toolsSmartDomDocument

Tool for another plugin : Add some libraries for easiest manipulation on DOM

Documentation

The primary purpose is to manipulate HTML just before shown. Exemple of usage for beforeQuestionRender {ANSWERS}. Not using regexp, because find id or element in HTML is more stable.

The class can be easily imported using $dom = new \toolsDomDocument\SmartDOMDocument();. After 2 function extend php DOMDocument are added.

  • loadPartialHTML : to load the HTML of answers
  • saveHTMLExact : to get exact HTML updated.

Copyright

About

Tool for another plugin : Add some libraries for easiest manipulation on DOM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages