Chris P
Chris P

Reputation: 2357

php function similar to .text() jQuery method

Hi i was wondering if there is a function in php to take this 1<sup>o</sup>semaster and returns me 1o semaster I want the same function for php as variable.text() method of jquery

Upvotes: 0

Views: 163

Answers (2)

Sudhir Bastakoti
Sudhir Bastakoti

Reputation: 100175

$test = "1<sup>o</sup>semaster
echo strip_tags($test);

Upvotes: 0

Tom van der Woerdt
Tom van der Woerdt

Reputation: 29985

You're probably looking for strip_tags

Upvotes: 4

Related Questions