Skip to content

Make sure escaped nodes work well with HTML

Himanshu Kapoor requested to merge 369109-fix-escaping-with-html-nodes into master

What does this MR do and why?

Make sure escaped nodes work well with HTML

In content editor, when serializing an HTML node, if the node contains any special characters that will be escaped, the node should be rendered as block instead of inline

Changelog: fixed

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen_Recording_2023-06-10_at_00.52.06 Screen_Recording_2023-06-10_at_00.51.08

How to set up and validate locally

  1. Open a wiki page.
  2. Switch to rich text editor.
  3. Create a 2x1 table (2 rows, 1 column).
  4. In the table header, enter header*
  5. In the table cell, create a bullet list with 2 items.
  6. Switch to markdown and back to rich text.
  7. Notice that the header cell should say header* and not header\*.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #369109 (closed)

Edited by Himanshu Kapoor

Merge request reports