First part of the text, followed by some unbreakable spaces   /second part of the text
But if the entities are inside words, this becomes rather more difficult to correct: Jérome va pêcher à la rivière.
Numeric entities are easier to correct.
Example: Jérome va pêcher à la rivière.