List of usage examples for com.vaadin.server JsonPaintTarget escapeXML
static StringBuilder escapeXML(StringBuilder xml)
From source file:com.javalego.ui.vaadin.component.confirmdialog.ConfirmDialog.java
/** * Format the messageLabel by maintaining text only. * /*from w w w . jav a 2 s . com*/ * @param text * @return */ protected final String formatDialogMessage(final String text) { return JsonPaintTarget.escapeXML(text).replaceAll("\n", "<br />"); }