Created
December 30, 2013 08:25
-
-
Save benbaker/8179338 to your computer and use it in GitHub Desktop.
jquery to add spans on regex
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
$('p.menu').html(function(i,el) { | |
return el.replace(/\|/g, '<span class="sp">|</span>'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment