Last active
September 30, 2015 20:57
-
-
Save remitbri/1860928 to your computer and use it in GitHub Desktop.
JS - to strike letters & digits in a text
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
textToBeStriked.replace(/[a-zA-Z0-9À-ÿ]/g, "$&\u0336") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to Daniel Brockman http://stackoverflow.com/questions/7660115/using-strike-or-del-in-a-select-box/7660238#7660238