Widget:Copy

From Irony Wiki
Revision as of 08:50, 30 August 2020 by Saucy (talk | contribs) (c)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<script> function copy(text) {

  // const unescapeRegex = /(&#38\;)|(&#34\;)|(&#39\;)|(&#60\;)|(&#62\;)|(&#42\;)/g;
  navigator.clipboard.writeText(text);

} </script> <button type="button" onclick="copy()"></button>