Created
December 27, 2016 14:35
-
-
Save IgorGavrilenko/48c7418f8fd0eb2269fdfa15eefc5b3e to your computer and use it in GitHub Desktop.
замена подстроки
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
| $('.class').each(function() { | |
| $(this).html(function () { | |
| var res = $(this).html().replace(new RegExp(/ text /ig), 'text'); | |
| return res; | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment