Last active
October 29, 2016 16:47
-
-
Save maijou2501/de19b3a1d1272c40a486 to your computer and use it in GitHub Desktop.
Add, escape of '&' and '<' and '>'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var getSelect=document.getSelection().toString().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/\r?\n/g," \n> ");var blockquote="> "+getSelect+" \n> <br><cite><a href=\""+document.location+"\">"+document.title.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>')+"</a></cite>";alert(blockquote);})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment