Fix XHTML parsing in text

- Escape textNode html tags (they're not allowed there)
- Remove margin from p-Tags in messages (native clients tend to use it
  and it crashes the layout a bit)
- Escape submitted text before sending it