<p>You can simply use striptags filter which removes all HTML tags. But if you want an html tag to be not removed by striptags so you can pass it as argument, then It removes other tags except the ones you pass in.</p>
<p>In other words, if you don’t  want to remove  tag, just use it in this way:</p>
<pre><code>{{entry.content|striptags('&lt;strong&gt;') | raw }}
</code></pre>

CC BY-SA 4.0
2020-12-30T10:54:23.457Z
2020-12-30T10:54:23.457Z
ZealousWeb
<p>Is there any way to do it with striptags only or we have to use another filter?</p>

<craft3><redactor><filter>
Is there any way which does not remove Specific Html tags from the redactor editor using striptags only?
# Is there any way which does not remove Specific Html tags from the redactor editor using striptags only?

(Asked by: username_0 on 2020-12-30)

Is there any way to do it with striptags only or we have to use another filter?

**Tags:** craft3, redactor, filter

---

## 1 answers

### Answer by username_1 on 2020-12-30. Score: 1 | Accepted answer

You can simply use striptags filter which removes all HTML tags. But if you want an html tag to be not removed by striptags so you can pass it as argument, then It removes other tags except the ones you pass in.
In other words, if you don’t  want to remove  tag, just use it in this way:
{{entry.content|striptags('') | raw }}


---

