Properly XML-escape content in the layout