The macro here lets me copy simple snippets to clipboard.
But one of my fields carries this:
{{!!lede}}<br><br>
Some text <br><br>
<nowiki />#tag1 #tag2
<$list filter="[enlist{!!category}]">
#{{!!title}}
And I wanted a button to copy the whole contents. So, I did this:
<<copy-input "{{!!lede}}<br><br>
Some text <br><br>
<nowiki />#tag1 #tag2
<$list filter="[enlist{!!category}]">
#{{!!title}}
</$list>">>
I face two difficulties. One, the html formatting is lost (<br><br>
). Secondly, when it encounters the first ", it copies only upto there.
How do I solve this problem?