Paragraphs

Support MB Frontend Submission ParagraphsResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38483
    YasmineYasmine
    Participant

    Is there any way to use Textarea and for it not to save paragraph tags?

    I need to have paragraphs and so when a new paragraph is made, I want this to be respected.

    But I do not want my users seeing the html markup within the form when they edit.

    How do I have paragraphs without the tags?

    And WYSIWYG still saves with the <p> tag. So when I use a third party form, it shows the <p>

    Many thanks,
    Yasmine

    #38491
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It is a must when saving the <p> tag to the database, or other tags like <br> or newline character \n to know where to break the line.
    If you want to move all HTML tags when saving value to the database, you can create your own sanitization for the field. Please read more on the documentation https://docs.metabox.io/sanitization/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.