Stripping off HTML tags from string, having colon causes jQuery to throw error.
var str = 'Sample: <div>HTML <b>Text</b> with <i>tags</i></div>';
$(str).text();
Colon can not be modified with adding slash(es) to value. how can this be avoided. to remove all tags and get plain text including the colon.