@BlackSeep
That not work if I would do something like angularJs parser, I have solved fetching all text items and searching into for the regex.
This is the solution for me :
$("body").find(":not(iframe)").addBack().contents().each(function() {
if(this.nodeType == 3)
{
$(this).first().replaceWith( $(this).text().replace(/[{]{1}([\d]+)[,]{1}(.*?)[}]{1}/g, "<span class='translator' data-code='$1' data-text='$2'>$2</span>"));
}
});
For information I had used this for have one mapper for webpages translation.
Where i print "{id,text}" i replace that with one span and then I handle one special event for launch the translation of that box.