public final void setText(final String text) { userObject = XmlUtils.makeValidXml(text); xmlText = HtmlUtils.toXhtml(text); if (xmlText != null && !xmlText.startsWith("<")) { userObject = " " + text; xmlText = null; } }
public final void setXmlText(final String pXmlText) { xmlText = XmlUtils.makeValidXml(pXmlText); userObject = HtmlUtils.toHtml(xmlText); }