https://github.com/imsaeedafzal/htmldomparser
This library is useful to parse the html templates and override the elements as well.
https://github.com/imsaeedafzal/htmldomparser
domdocument php7 praser
Last synced: 3 months ago
JSON representation
This library is useful to parse the html templates and override the elements as well.
- Host: GitHub
- URL: https://github.com/imsaeedafzal/htmldomparser
- Owner: imsaeedafzal
- License: gpl-3.0
- Created: 2020-05-03T01:48:20.000Z (about 5 years ago)
- Default Branch: contribute
- Last Pushed: 2020-05-05T09:18:30.000Z (about 5 years ago)
- Last Synced: 2025-03-16T09:15:57.955Z (3 months ago)
- Topics: domdocument, php7, praser
- Language: PHP
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# HtmlDomParser
This library is useful to parse the html templates and override the elements quickly.*Key Features:*
- Helps to find the elements by class, id and element.
- You can also find the elements by custom xPaths as well.
- Get *innerHtml* content of any element same like you do in jQuery/JavaScript.
- Get *outerHtml* content of any element same like you do in jQuery/JavaScript.
- Overrides the *innerHtml* and *outerHtml* of any elemen same like the way you do in jQuery/JavaScript.
- List of attribtues for the each element within the iteration.
- List of the attributes outside the iteration using main dom object.
- Copy the attribuets of main element with the new one when outerHtml is replaced.
- Copy the attributes inside when innerHtml content is replaced.
- Supports the dirty bad/or dirty html templates too.
- More features coming soon.*Note: The work is in progress. You all are welcome to contribute to make this library awesome.*