search template cleanup of html