The copy_paste_as_plaintext_like feature filters out all HTML tags, leaving only basic ones in copy-pasted text. Only the tags, attributes, styles, and special characters listed below are preserved. Everything else is removed to ensure clean and safe formatting.

Allowed HTML tags

These HTML tags are retained in their basic form:

a
b
br
div
em
h1, h2, h3, h4, h5, h6
i
img
li
ol
p
pre
s
span
strong
sub
sup
table, thead, tbody, tr, th, td
u
ul

Allowed attributes

Attributes that are explicitly permitted:

  • Global (*): style
  • a: href, target
  • img: src, alt, width, height
  • table: border
  • td: colspan, rowspan
  • span: data-replaced-id

Allowed styles

Only safe inline styles matching specific patterns are retained:

  • Global (*) styles:
    • font-weight
    • text-decoration
    • text-decoration-line
  • img styles: All inline styles (*)
  • Table element styles (table, td, th, tr, thead, tbody):
    • width, color, background-color, border
    • Full border control on all sides (top, right, bottom, left), including: border-*, border-*-style, border-*-color, border-*-width

Preserved special characters

  •  (non-breaking space)

Embedded elements

The following embedded elements are also preserved:

  • RICH_TEXT_EMBEDDED_TAG_CLASSNAME: Embedded text
  • RICH_TEXT_EMBEDDED_DIAGRAM_CLASSNAME: Embedded diagram
  • RICH_TEXT_ANCHOR_TAG_CLASS_ROOT: Embedded anchor link
  • RICH_TEXT_JIRA_TAG_CLASSNAME: Embedded JIRA issue
  • DIAGRAM_IMAGE_CLASSNAME: Embedded diagram image