if ($content =~ /(&(?:[lg]t|amp|quot);)/) { carp "Possible double-encoded HTML entity ($1) found in results"; }