Created
January 19, 2011 21:10
-
-
Save xdissent/786872 to your computer and use it in GitHub Desktop.
Wrap question marks in headers with span in jQuery 1.4+
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
$('h1, h2').html(function(i, h) { | |
return h.replace(/\?/g, '<span class="question-mark">?</span>'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment