I'm using the gform_field_content filter to change the way my form is printed out (I want very cut-down, simple HTML).
However, when I submit the form to trigger an error (AJAX is on) the output includes LI elements and my filter function is completely ignored.
How can I stop this happening and filter every instance of my form?