I have the specific code :
<script>
$.fn.revert = function(){
return this.each(function() {
var txt = $(this).html().replace(/<span class="gradientizer-done" style='color:rgb\(\d{1,3},\d{1,3},\d{1,3}\)>.<\/span>/g,'');
$(this).html(txt);
});
};
</script>
And this code :
<p class="grad2" one="ffffff" second="000000">
<span class="gradientizer-done" style="color:rgb(255,255,255)"> </span>
<span class="gradientizer-done" style="color:rgb(219,219,219)">H</span>
<br>
<span class="gradientizer-done" style="color:rgb(109,109,109)">l</span>
</p>
Basically, the revert function intended to change all the gradientizer-done class to text , that is I expect the follow result when running revert on $(".grad2").revert():
<p class="grad2" one="ffffff" second="000000">
H<br>l</p>
But i see no change in <p></p>