Response title
This is preview!
Hi just found a way to do this
var emoticons = {
smile: '<img src="/icons/smile.gif" />',
sad: '<img src="/icons/sad.gif" />',
wink: '<img src="/icons/wink.gif" />'
};
var patterns = {
smile: /:-\)/gm,
sad: /:-\(/gm,
wink: /;-\)/gm
};
$('.SomeDiv').each(function() {
var $CommentContent = $(this);
var html = $CommentContent.html();
© 2013 jQuery Foundation
Sponsored by and others.