Top "Strip-tags" questions

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

Stripping HTML tags in Magento

This is probably pretty simple for most... I have this line in Magento which is part of what posts to …

php urlencode strip-tags
How to strip all visual composer shortcode/tags from wordpress's post_content fetched with custom query

I am working on a web-service(API) where i am fetching result WP_query() function and parse that in JSON …

php wordpress strip-tags visual-composer
stripping tags from excerpt in Wordpress is not working

I am using this snippet <a href='<?php the_permalink() ?>' title='<?php echo …

php wordpress strip strip-tags
PHP: How to mass replace $_POST[...] with strip_tags($_POST[...])

I'm currently recovering from a nasty XSS attack, and realized I never sanitized inputs on several of the forms on …

php forms input sanitize strip-tags
PHP, strip_tags stripping \n in text area. How to stop it?

I would like to be able to accept \n or \r\n and convert them to <br /> for …

php string-formatting strip-tags
How to strip Style Attributes from HTML Tags?

I want to remove all styles from tags with PHP. For example. Original: <body style="color:back;"> Final: &…

php html strip-tags
Problem using strip_tags in php

I have used strip_tags to remove html tags from the text. Example <h1>title of article</…

php html strip-tags
PHP: strip the tags off the value inside array_values()

I want to strip the tags off the value inside array_values() before imploding with tabs. I tried with this …

php arrays preg-replace implode strip-tags
strip_tags not working

I am truing to filter html characters out like this $user = $_POST["user"]; //Get username from <form> mysql_…

php mysql html filter strip-tags
Using Smarty to strip P tags from my HTML

I'm using this code {$entry.entry|strip_tags} to strip tags, however I would just like to strip <p&…

php smarty paragraph strip-tags