Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
clipboardData.getHtml()
#2
Example. In Chrome select some text or link. Run this script.
 
Code:
Copy      Help
print.it(clipboardData.getHtml());

It prints
 
Code:
Copy      Help
<html>
<body>
<!--StartFragment--><strong style="color: rgb(51, 51, 51); font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><a href="https://www.libreautomate.com/forum/forumdisplay.php?fid=19" style="color: rgb(0, 114, 188); text-decoration: none;">Help (LA)</a></strong><!--EndFragment-->
</body>
</html>

It is correct.


Messages In This Thread
clipboardData.getHtml() - by MBaas - 03-27-2024, 03:39 PM
RE: clipboardData.getHtml() - by Gintaras - 03-27-2024, 04:14 PM
RE: clipboardData.getHtml() - by MBaas - 03-28-2024, 05:23 AM
RE: clipboardData.getHtml() - by Gintaras - 03-28-2024, 06:12 AM
RE: clipboardData.getHtml() - by MBaas - 03-28-2024, 09:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)