Quick actions

cmd+k|ctrl+k

Navigation

Languages

PHP strip_tags() 函数:2

Snippet info

Language

Php

Visibility

public

Author

fenghestudio

Created

2019-11-29T06:41:25Z

Updated

2019-11-29T06:41:25Z

$srting = '<a title="" href="/index.html"><b>Some Text</b></a>
Lorem Ipsum is simply dummy text of the printing and typesetting industry.';

echo strip_tags_content($srting);

function strip_tags_content($text) {
    return preg_replace('@<(\w+)\b.*?>.*?</\1>@si', '', $text);
 }
INFO