Created
November 2, 2011 06:39
-
-
Save cato/1333044 to your computer and use it in GitHub Desktop.
Insert a non-breaking space between the words "New Zealand", so that they are never orphaned
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
| var nz = $('p,h1,h2,h3,h4,h5,h6').filter(":contains('New Zealand')"); | |
| nz.each(function(){ | |
| $(this).html( $(this).html().replace("New Zealand", "New Zealand")); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment