</div> in textarea breaks page layout

I am trying to anticipate how editors might abuse the panel input areas

I paste

</div>
</div>
</div>`

into the text area. This closes page divs prematurely breaking the page layout.

How can I prevent this from happening? I am thinking somehow make the content area of the page a walled garden. Preferably I would like to continue to use kirbytext like

 (image: boat.jog)

Thanks

If users are not allowed to use any HTML or particular tags, you could use a kirbytext pre filter to get rid of anything you don’t want in your content area before kirbytext is parsed.

1 Like