![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 112.87.0.17
|
|||
|
|||
|
有2个方法,第一个是用strip_tags() will strip HTML tags来实现:
Code:
strip_tags($text, '<br>'); Code:
preg_replace('#<a.*?>(.*?)</a>#i', '\1', $text)
Code:
preg_replace('#<a.*?>.*?</a>#i', '', $text)
|
![]() |
| Currently Active Users Viewing This Thread: 3 (0 members and 3 guests) | |
|
|