This doesn't really make sense. The whole point of escaping characters in HTML is to do it before you add the tags. Something like this:
$content = "<p>" . htmlspecialchars("& operation check") . "</p><p>" . htmlspecialchars("< operation check") . "</p>";
If the data you have is already not escaped, then that data is broken, and shouldn't be used. You'll need to go back one step, and find out where you getting the data from and why is it broken, and get the data before it is broken.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…