php - Remove all HTML tags and attributes from a string -
this question has answer here:
- remove html tags php string 4 answers
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
Post a Comment