How to convert multiple
tag to a single
tag in php

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

Wanted to convert






into


9条回答
  •  既然无缘
    2020-12-03 02:17

    A fast, non regular-expression approach:

    while(strstr($input, "

    ")) { $input = str_replace("

    ", "
    ", $input); }

提交回复
热议问题