Skip to content

Instantly share code, notes, and snippets.

@rmanalan
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmanalan/4b3c58d2b613ccad9ea1 to your computer and use it in GitHub Desktop.
Save rmanalan/4b3c58d2b613ccad9ea1 to your computer and use it in GitHub Desktop.
var elems = $('#post p');
$.each(elems, function(i,elem){
var $elem = $(elem);
// bail if there's no match
if (remoticon.hasMatch($elem.text())) {
$elem.html(remoticon.render($elem.html()));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment