Escape HTML entities in plaintext nodes
Trim whitespace between header prefix and text