strip_tags

strip_tags

(PHP 4, PHP 5, PHP 7)

strip_tagsStrip HTML and PHP tags from a string

Description

string strip_tags ( string $str [, string $allowable_tags ] )

This function tries to return a string with all NULL bytes, HTML and PHP tags stripped from a given str. It uses the same tag stripping state machine as the fgetss() function.

Parameters

str 登录查看完整内容