Glued-In fuel tanks?
I have never had a problem with tanks mounted that way. I suppose that an inline filter would break up the foam [ if foaming should occur.]
The best way to avoid foaming is the reduction of vibration by carefulley balancing the prop and mounting the engine firmley to the air frame.
Hope this helps,
Roger