# Copy to Clipboard Advice

**URL:** <https://kanboard.discourse.group/t/copy-to-clipboard-advice/2504>\
**Category:** Enhancements\
**Created:** [November 25, 2022, 7:00pm UTC](https://kanboard.discourse.group/t/copy-to-clipboard-advice/2504 "2022-11-25T19:00:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aljawaid](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/aljawaid/32/1090_2.png) [@aljawaid](https://kanboard.discourse.group/u/aljawaid)\
**Post date:** [November 25, 2022, 7:00pm UTC](https://kanboard.discourse.group/t/copy-to-clipboard-advice/2504/1 "2022-11-25T19:00:44Z")

</div>

Hello all,

I’m looking into copying comments, which I have KIND OF got working but need some advice. I’m using ClipboardJS for the functionality.

**My only problem is that I can’t seem to copy the RENDERED (final output on screen) comment.**

* * *

**COPY HTML**

```auto
<li class="clipboard-html btn" data-clipboard-text="<?= $this->text->markdown($comment['comment'], isset($is_public) && $is_public) ?>">Copy HTML</li>

```

This works fine, except the result is in html code e.g. `<h3>comment title</h3><p>text comment</p>`

* * *

**COPY MARKDOWN**

```auto
<li class="clipboard-md btn" data-clipboard-text="<?= $this->text->e($comment['comment']) ?>">Copy Markdown</li>

```

This works fine, except the result is in markdown code e.g. `### Site Visit | Location | test location |`

* * *

**COPY RENDERED**  
I can’t seem to copy the final output. Any ideas?

---

<div class="post-metadata">

**Author:** ![aljawaid](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/aljawaid/32/1090_2.png) [@aljawaid](https://kanboard.discourse.group/u/aljawaid)\
**Post date:** [November 25, 2022, 9:39pm UTC](https://kanboard.discourse.group/t/copy-to-clipboard-advice/2504/2 "2022-11-25T21:39:21Z")

</div>

I fixed it, will be a useful feature in the plugin for those who work a lot with comments

 ![image](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/2X/7/7136278fa2176e608e87c28cc6350bdc127a1ff4.png)
