Hello Guys, i have found a solution for the problem!
These are the steps you need to take:
Settings – Writing – Tick the box that says ‘WordPress should correct invalidly nested XHTML automatically’.
After this, just update the post that is being affected and everything should be back to normal!