JGrowlUtil { static String escape(String origMsg) { final String escaped = Strings.escapeMarkup(origMsg).toString(); return escaped .replace("&quot;", "'") .replace("&#039;", "'"); } private  JGrowlUtil(); static String asJGrowlCalls(final MessageBroker messageBroker); static void addJGrowlCall(
            final String origMsg, 
            final MessageSeverity severity, 
            final StringBuilder buf);  }
@Test public void testEscape() throws Exception { assertThat(JGrowlUtil.escape( "double quotes \" and single quotes ' and <p>markup</p>"), equalTo( "double quotes ' and single quotes ' and &lt;p&gt;markup&lt;/p&gt;")); }