Former “Cosby Show” child star Keshia Knight Pulliam publicly denies having cheated on her husband and alleges former NFL player Ed Hartwell was the unfaithful partner during their marriage, Entertainment Tonight reports.

advertisement | advertise on newsday

Pulliam, who earlier this month announced she and Hartwell are expecting their first child, said in an emotional interview airing Wednesday evening that she had been the first one to seek a divorce because of infidelity.

“Early on in my marriage when I was faced with this [cheating by Hartwell], I was ready to leave,” the 37-year-old actress said. “In the process, I found out I was pregnant. And I had to take another hard look and decide if I wanted to try to work through this and forgive him for the sake of the child. Like, I had divorce papers ready. I presented it to him. . . . Once I was pregnant I did decide to give him that one last chance.”

Hartwell, 38, filed for divorce from Pulliam on Monday and also requested a paternity test for the girl Pulliam is expecting. The couple married on New Year’s Eve 2015. He has a son from a previous marriage.

The former NFL player did not respond to requests for comment from Entertainment Tonight.