“display:none” content copied to clipboard, visible when pasted

后端 未结 5 1738
星月不相逢
星月不相逢 2020-12-31 13:37

I\'m having a problem with non-displayed HTML elements being copied to the clipboard, and then displayed when the content is pasted into MS Word, Outlook, etc.

For e

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-31 14:24

    You should be aware that hiding HTML with CSS only works if the renderer supports all the CSS styles.

    Just because you do not see copy/pasted HTML in Outlook does not mean the data is not already there.

    I am not sure what you are actually trying to achieve: Why do you need your users to copy HTML into Outlook at all?

提交回复
热议问题