Instead of doing this, I think we want to do something like the getContent we already have for the main body, except here we don't care about attachments so we can do something a lot more simple: just iterate over nodes, keep textNodes and Elements <br>, and ignore all others. Will be more reliable and safer and more readable than using replace and escape.