How to convert multiple
tag to a single
tag in php

后端 未结 9 1268
执念已碎
执念已碎 2020-12-03 02:03

Wanted to convert






into


9条回答
  •  难免孤独
    2020-12-03 02:25

    You probably want to use a Regular Expression. I haven't tested the following, but I believe it's right.

    $text = preg_replace( "/()+/i","
    ", $text );

提交回复
热议问题