Open GoogleCodeExporter opened 9 years ago
Well.. the test should have simply been:
if ( text ) {
text = text.replace(/>/g,">").replace(/</g,"<").replace(search_text_d, "<span class=hg>\$1</span>");
}
the " && 0 < text.length " part is redundant.
I only learned javascript yesterday :)
Original comment by marcello...@gmail.com
on 4 Nov 2014 at 3:10
Original issue reported on code.google.com by
marcello...@gmail.com
on 4 Nov 2014 at 2:13Attachments: