Modify Clipboard content after copy event: JavaScript, jQuery
问题 My requirement: When user copy some content from my web page, with text some HTML tags and carriage retun also gets copied. I need to modify the copied content in clipboard i.e. removing carriage retunn and HTML tags. What I have tried so far: I have captured the copy even using jQuery and get the content of clipboard. See below code. $(document).bind('copy', function () { //getting clipboard content var selectedText = window.getSelection().toString(); //removing carriage retun from content