I have retrieved some data from my MySQL database table in a text area field:
<textarea class='sendDesc insert' name='blog_body' placeholder='".$blogReturn->GetBlogBody()."'></textarea>
And it shows this as result:
Now what I want to do is to remove the html tags such as <p>
tags from this text. So only the text will show on screen .. (with the applied css settings).
So how can I do that?
使用strip_tags()
echo strip_tags("Hello <p>world!</p>");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.