so i couldn't find how to do it...
oh, yeah... i wanted it to be jquery so i will be able to do it on all but the last one
this is my problem too
so i couldn't find how to do it...
oh, yeah... i wanted it to be jquery so i will be able to do it on all but the last one
this is my problem too
Technically, this:
var search = $('body').html();
search = search.replace(/Phrase/g, function($1){
return('<span style="text-decoration: line-through">' + $1 + '</span>');
});
$('body').html(search);
should do it. This example would strikeout every appearance of "Phrase" in the whole body.
Executing it on the document body is maybe a bad example. I would recommend to execute it on a specific element.