# How to copy rich text?

**URL:** <https://community.weweb.io/t/how-to-copy-rich-text/16394>\
**Category:** How do I?\
**Created:** [February 11, 2025, 2:26am UTC](https://community.weweb.io/t/how-to-copy-rich-text/16394 "2025-02-11T02:26:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raelyn](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raelyn/32/2803_2.png) [@raelyn](https://community.weweb.io/u/raelyn)\
**Post date:** [February 11, 2025, 2:26am UTC](https://community.weweb.io/t/how-to-copy-rich-text/16394/1 "2025-02-11T02:26:35Z")

</div>

Hi there!

I’m outputting some formatted text to a rich text format box. Then I have a button using the “copy to clipboard” function in the workflow. This copies it as markdown or html. How would I go about making it copy rich text? Right now, I’m asking the user to copy and paste by selecting the text which is inefficient and clunky, users are asking for a copy button but i can’t implement it

Saw quite a few posts about this but no resolution.

Like this post: [Copy Button for Rich Text format output](https://community.weweb.io/t/copy-button-for-rich-text-format-output/7306)

Thank you!

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [February 11, 2025, 6:48am UTC](https://community.weweb.io/t/how-to-copy-rich-text/16394/2 "2025-02-11T06:48:13Z")

</div>

I think you’d need to clean the markup yourself by using some regex (You can use the copilot). There is no simple way at the moment.

---

<div class="post-metadata">

**Author:** ![raelyn](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raelyn/32/2803_2.png) [@raelyn](https://community.weweb.io/u/raelyn)\
**Post date:** [February 12, 2025, 7:25am UTC](https://community.weweb.io/t/how-to-copy-rich-text/16394/3 "2025-02-12T07:25:12Z")

</div>

I solved it with code thank youuu
