Jump to content

Allow some HTML tags in textarea (without using RTE)


TomPich
 Share

Recommended Posts

Hello guys,

I have a field that is supposed to be a simple paragraph inside a homepage section. The user is not supposed to be able to insert headings, or list, or whatever block tags. But I still want them to be able to use <b>, <strong>, <sub> and that kind of inline tags. MarkDown Parser would almost do the job, but I’m not 100% happy with the fact that you can’t have <b> and <i> tags with it. <strong> has a semantic meaning that <b> doesn’t have (same for <em> and <i>). And using both of these tags (<strong> and <b>) allows you to apply different CSS rules (like bold and primary colour for <strong>, and only bold for <b>).

So I was wondering if there is a way to allow certain HTML tags in a text or textarea field. I saw that there is a Strip Tag option in the Input tab, but it does not allow you to specify allowed tags, like with the strip_tags PHP function...

Have a nice day

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...