I was wondering which of the following sentence is grammatically correct (British English preferably):
I could not help laughing. I could not help but laugh.
There is a similar question on this site but that does not explain the grammatical correctness of the above mentioned sentences. References are welcome.