<p>I guess with Redactor II you "manually" have to make sure you cannot create those tags with buttons/shortcuts or by pasting in rich text.</p>

<ul>
<li>Button configuration works with the <code>formatting</code> and <code>formattingAdd</code> settings.</li>
<li><a href="https://imperavi.com/redactor/docs/settings/paste/" rel="nofollow noreferrer">Paste config settings</a> were added with Redactor II 1.2 (Craft 2.bla), the ones you're probably interested in are <code>pasteBlockTags</code> and <code>pasteInlineTags</code>.</li>
</ul>

<p>Redactor II deprecated the <code>paragraphize</code> setting and automatically wraps each paragraph in <code>&lt;p&gt;</code> tags. If you also want to prevent <code>&lt;p&gt;</code> tags, removing them on a template level using a Twig filter like <a href="http://twig.sensiolabs.org/doc/filters/striptags.html" rel="nofollow noreferrer"><code>striptags</code></a> is probably your best bet at the moment (→ see <a href="https://craftcms.stackexchange.com/a/13183/125">Redactor II Craft 2.5 Prevent Paragraphs</a>).</p>

CC BY-SA 3.0
2016-01-12T13:04:53.373Z
2016-01-12T13:04:53.373Z
2017-04-13T12:51:00.303Z
carlcs
<p>Has anyone found a replacement for: </p>

<pre><code>deniedTags: ['p'],
paragraphize: false
</code></pre>

<p>I can't find a way to strip the pesky <code>&lt;p&gt;</code> tag anymore, on Redactor II.</p>

<redactor>
Redactor denied tags replacement?
# Redactor denied tags replacement?

(Asked by: username_0 on 2016-01-11)

Has anyone found a replacement for: 
deniedTags: ['p'],
paragraphize: false

I can't find a way to strip the pesky  tag anymore, on Redactor II.

**Tags:** redactor

---

## 1 answers

### Answer by username_1 on 2016-01-12. Score: 2

I guess with Redactor II you "manually" have to make sure you cannot create those tags with buttons/shortcuts or by pasting in rich text.

* Button configuration works with the `formatting` and `formattingAdd` settings.
* [Paste config settings](https://imperavi.com/redactor/docs/settings/paste/) were added with Redactor II 1.2 (Craft 2.bla), the ones you're probably interested in are `pasteBlockTags` and `pasteInlineTags`.

Redactor II deprecated the `paragraphize` setting and automatically wraps each paragraph in  tags. If you also want to prevent  tags, removing them on a template level using a Twig filter like [`striptags`](http://twig.sensiolabs.org/doc/filters/striptags.html) is probably your best bet at the moment (→ see [Redactor II Craft 2.5 Prevent Paragraphs](https://craftcms.stackexchange.com/a/13183/125)).


---

