basic filter support; also, added real html-escaping for replace-values.