how to remove html tags in php?

前端 未结 6 1791
时光说笑
时光说笑 2020-12-19 15:26

i posted some data using tinymce (in a symfony project).while retrieving back how can i remove html tags? strip_tags not working..

6条回答
  •  感动是毒
    2020-12-19 15:46

    You could use strip_tags:

    strip_tags('your text or variable');
    

    It should work in symfony. Make sure that you have done everything correctly.

提交回复
热议问题