i want a function extract(url,options) this function delete all html tags (strip_tags), <style>, <script>... and return text (text with no attributes, html tags...)
options :
META: if this option is set, add the meta description
TITLE: if this option is set add all text you can find in alt="..." or title="..."
So here is my understanding: You need a funciton that will pass 2 parameters
1. URL
2. options like alt, title, META
This should give you text for the options selected..
Example you said alt,
<a alt = "alt example" >hi</a>
This will extract "alt example" in case u sent alt in options list