Contents inside <template> tags are stripped after node save.

Created on 8 September 2023, over 1 year ago
Updated 30 May 2024, 7 months ago

Problem/Motivation

Steps to reproduce

When I have a tag inside the html embed, inner contents are lost after saving the node.

1. Enable html embed plugin.
2. Insert html along with tag.
3. Save the node.
4. Edit node and see if the contents inside are still there.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India sahal_va

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sahal_va
  • Assigned to mohd sahzad
  • If the filter allowed tags is checked everything is stripped except the allowed tags. It should skip to filter this part of the content, no?

  • 🇺🇸United States chrissnyder Maryland

    If the filter allowed tags is checked everything is stripped except the allowed tags. It should skip to filter this part of the content, no?

    It does not. The filter operates separately from the CKEditor HTML Embed plugin. There are cases (security, design adherance, perdicatable markup, etc) where a site's configuration will still want to limit the allowed tags even when using the HTML Embed plugin.

    On the text format that has the HTML Embed button, do you have "Limit allowed HTML tags and correct faulty HTML" filter enabled? If you do, does the issue still occur if you disable that filter?

Production build 0.71.5 2024