I have a html snippet like this stored in a variable for example
var parse= 'Hello<i class="emoji emoji_smile" title=":smile:"></i><i class="emoji emoji_angry" title=":angry:"></i>World'
Now I want to parse this html and it must grab the value of the title and replace the tag only with the title then return the result like this using javaScript or jQuery
var parsed = Hello:smile::angry:world
Can anyone point me towards right direction on how I can do it? So that I can work it out?