Formatted content needs to be inside a CDATA block; use scala.xml.PCDATA constructor.