I would like a PHP script to do this in a web browser interface...
The page opens with a text input field into which I can paste some complicated HTML (see the example file attachment).
I click a submit button.
The script simplifies the HTML so that it ONLY contains these tags...
p, ul, li, a, em, strong
After simplification the only attribute should be href
Delete span tag (but keep any text in between), replace div with p
Delete img tags including the image, if any.
Replace curly quotes with standard " or '
The result should be displayed in a textarea beneath which is another submit button that starts the whole process again for a new input.
I need only plain presentation, it doesn't need to be fancy in any way.