Skip to content

Instantly share code, notes, and snippets.

@ihsanberahim
Created October 14, 2013 15:12
Show Gist options
  • Save ihsanberahim/6977220 to your computer and use it in GitHub Desktop.
Save ihsanberahim/6977220 to your computer and use it in GitHub Desktop.
var html = $('p').html();
$('p').html(html.replace(/world/gi, '<strong>$&</strong>'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment