Added the correct escaping for the JavaScript driving search filters. Marked titles on items as safe so that they are not double-escaped