PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

TinyMCE Visual Editor - HTML stripped from submitted entries

  1. I installed TinyMCE per this thread: http://www.gravityhelp.com/forums/topic/a-visual-editor-in-gravity-forms

    The editor is working and displays with the paragraph text field.

    But all HTML is stripped when the entry is submitted, with <p> tags replaced with
    .

    I am displaying the entry results in a text confirmation message. You can see it working here: http://thirdiron.com/libguides-widget/

    If you test it out you can see the text from the "Description" field inside each "Info Box" example on the confirmation page. But it is text-only; the HTML is stripped. When I check the entries on the form dashboard it is stripped there as well so something is happening when the data is posted.

    Any ideas?

    Posted 7 years ago on Wednesday October 3, 2012 | Permalink
  2. I believe you will need to allow some specific HTML tags using the gform_allowable_tags filter. Without doing that, no HTML tags will be accepted. You can specific the tags which you want to allow so you don't open up any security problems.

    http://www.gravityhelp.com/documentation/page/Gform_allowable_tags

    Posted 7 years ago on Wednesday October 3, 2012 | Permalink
  3. Thanks, Chris. That worked to get the HTML to pass through.

    But now on the confirmation page it is showing the HTML tags as text, rather than as HTML. The confirmation page is displaying the HTML character code for the "less than" and "greater than" characters surrounding the html tags. If you use the link in my original post to test this out you'll see what I mean (look at the very top of the confirmation page window)

    When I look at the actual entry in the dashboard it is displaying as HTML, so this issue seems to just be limited to the confirmation page.

    Posted 7 years ago on Thursday October 4, 2012 | Permalink
  4. Anyone have a chance to review this issue?

    Posted 7 years ago on Wednesday October 10, 2012 | Permalink

This topic has been resolved and has been closed to new replies.