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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -