Created
May 13, 2016 01:34
-
-
Save johnpmorris/57eb5b0ffe9b1b4a7b568730452d5bbc to your computer and use it in GitHub Desktop.
Replace standard hyphens with non-breaking hyphens.
This file contains hidden or 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
$('span').each(function() { | |
var text = $(this).text(); | |
$(this).text(text.replace('-', '‑')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment