Correctly escape attribute text in search form template.