Fix not found results + escape html before logging searches