Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-30T10:54:23.457Z
Answers.LastActivityDate: 2020-12-30T10:54:23.457Z
Answers.UserDisplayName: ZealousWeb
Body: <p>Is there any way to do it with striptags only or we have to use another filter?</p>
  
Tags: <craft3><redactor><filter>
Title: Is there any way which does not remove Specific Html tags from the redactor editor using striptags only?
ThreadText: # 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('<strong>') | raw }}
  
  ```
  
  
  ---
  
  