How to remove text between tags in php?

前端 未结 6 894
时光取名叫无心
时光取名叫无心 2020-12-06 00:56

Despite using PHP for years, I\'ve never really learnt how to use expressions to truncate strings properly... which is now biting me in the backside!

Can anyone prov

6条回答
  •  攒了一身酷
    2020-12-06 00:58

    Only use strip_tags(), that would get rid of the tags and left only the desired text between them

提交回复
热议问题