Top "Strip-tags" questions

Use this tag for questions related to removing tags (HTML or otherwise) from text.

How to strip or escape html tags in Android

PHP has strip_tags function which strips HTML and PHP tags from a string. Does Android have a way to …

android strip-tags
jQuery (almost) equivalent of PHP's strip_tags()

Is there a jQuery version of this function? string strip_tags( string $str [, string $allowable_tags ] ) strip all tags and …

javascript jquery html strip-tags
What is the MySQL query equivalent of PHP strip_tags?

I have a large database which contains records that have <a> tags in them and I would like …

mysql strip-tags
Using PHP substr() and strip_tags() while retaining formatting and without breaking HTML

I have various HTML strings to cut to 100 characters (of the stripped content, not the original) without stripping tags and …

php html substr strip-tags
CKEditor strips inline attributes

I have been using CKEditor for some time and it has worked great. I've pretty much gotten rid of any …

html ckeditor strip-tags
Why doesn't strip_tags work in PHP?

I've got the following code: <?php echo strip_tags($firstArticle->introtext); ?> Where $firstArticle is a stdClass object: …

php strip-tags
Is strip_tags() vulnerable to scripting attacks?

Is there a known XSS or other attack that makes it past a $content = "some HTML code"; $content = strip_tags($…

php html security xss strip-tags
remove html tags

Currently, I use strip_tags, to remove all html tags from the strings I process. However, I notice lately, that …

php strip-tags
Cleanup HTML with PHP to create clean string

I've got a bunch of HTML data that I'm writing to a PDF file using PHP. In the PDF, I …

php html strip-tags
PHP: strip_tags - remove only certain tags (and their contents)?

I use the strip_tags() function but I need to remove some tags (and all of their contents). for example : &…

php web-scraping strip-tags