I need a PHP script. It should use DOMDocument and its document traversal / parsing functions to achieve the following:
1) Generate Text from HTML
2) Ability to specify which nodes should be skipped (in configuration/settings that can be easily changed).
3) Ability to treat formatting nodes (<b><i> etc) separate from other nodes like <div> <p> etc.
4) Ability to skip text from "non-formatting" nodes, if it is less that N words/characters long.
5) Must not use any third party library.
Code must be neat, clean and modular --> easy to read, tweak, maintain and change.
Need it delivered in couple of hours. Quick job for right coder.