标签: php jquery html text
嗨我想知道php中是否有一个函数可以使用1<sup>o</sup>semaster并返回1o semaster 我希望php的功能与jquery的variable.text()方法相同
1<sup>o</sup>semaster
1o semaster
variable.text()
答案 0 :(得分:4)
您可能正在寻找strip_tags
答案 1 :(得分:0)
$test = "1<sup>o</sup>semaster echo strip_tags($test);