How to cope with being cheated on?

Let’s be real the ideal answer is to leave. But realistically not everyone is ready to. A family, children, promises and changes that it won’t happen again. So staying in a relationship and working through it. How do you cope? Get over it? Stop comparing yourself to the other woman?

Positive response only please.