protected String htmlContent(Event event) { return Web.encodeUrlsAsHtml(Web.escapeHtml(plainTextContent(event),true)); }
/** * Get the formatted body (either html or plain-text converted to html), as a string. * * @return The formatted body as a string. */ public String getFormattedBody() { if ( getHtmlBody() != null && getHtmlBody().length() > 0 ) return m_html_body; else return Web.encodeUrlsAsHtml( FormattedText.convertPlaintextToFormattedText(m_body) ); } // getHtmlBody