PHP removing html tags from string

后端 未结 6 1850
小鲜肉
小鲜肉 2020-12-02 02:06

I have string:

Vers­lo cent­rai Lie­tu­vos ne­kil­no­ja­mo­jo turto plėt­ros aso­cia­ci­jos kon­kur­se ...

6条回答
  •  余生分开走
    2020-12-02 02:27

    This will replace all html tags, https://regex101.com/r/jM9oS4/4

    preg_replace('/<(|\/)(?!\?).*?(|\/)>/',$replacement,$string);
    

提交回复
热议问题