Skip to content

Instantly share code, notes, and snippets.

@krutz27
Created October 4, 2013 13:28
Show Gist options
  • Select an option

  • Save krutz27/6825904 to your computer and use it in GitHub Desktop.

Select an option

Save krutz27/6825904 to your computer and use it in GitHub Desktop.
jQuery(function () {
jQuery(":contains(FIND)").not(":has(:contains(FIND))").each(function () {
var that = $(this),
html = that.html();
html = html.replace(/(\(FIND:.*?\))/g, "REPLACE-WITH");
that.html(html);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment