Skip to content

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

Notifications You must be signed in to change notification settings

SondagesPro/LS-toolsDomDocument

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

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

Languages