Don't remove entities or newlines from <annotation> elements.  

Fixes #847.