WTForms; re.compile; better escaping; more consistent, accurate behavior.