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,targetimg:src,alt,width,heighttable:bordertd:colspan,rowspanspan:data-replaced-id
Allowed styles
Only safe inline styles matching specific patterns are retained:
- Global (
*) styles:font-weighttext-decorationtext-decoration-line
imgstyles: 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 textRICH_TEXT_EMBEDDED_DIAGRAM_CLASSNAME: Embedded diagramRICH_TEXT_ANCHOR_TAG_CLASS_ROOT: Embedded anchor linkRICH_TEXT_JIRA_TAG_CLASSNAME: Embedded JIRA issueDIAGRAM_IMAGE_CLASSNAME: Embedded diagram image