Replacing tag with tag using PHP

前端 未结 4 1276
无人及你
无人及你 2020-12-17 03:09

OK, I have a section of code with things like:
Text

I need to reformat thes

4条回答
  •  失恋的感觉
    2020-12-17 03:32

    Try this,

    $link = 'Text';
    echo $formatted = "".strip_tags($link)."";
    

    Check this link out as well, I think this is what you are looking for.

提交回复
热议问题