php - Remove all HTML tags and attributes from a string -


this question has answer here:

i retrieving data table in mysql database created joomla framework. want encode data in json format. after retrieving data there many unnecessary tags , style properties. tried html_entity_decode, strip_tags , many more built in functions didn't work me. can tell me how remove tags , styles attributes retrieved data , plain text only.

use php strip_tags() function.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -