Example usage for org.apache.wicket.util.string StringEscapeUtils escapeXml

List of usage examples for org.apache.wicket.util.string StringEscapeUtils escapeXml

Introduction

In this page you can find the example usage for org.apache.wicket.util.string StringEscapeUtils escapeXml.

Prototype

public static String escapeXml(String str) 

Source Link

Document

Escapes the characters in a String using XML entities.

Usage

From source file:sf.wicklet.wicketext.util.XmlUtil.java

License:Apache License

@Override
public CharSequence escAttr(final String source) {
    return StringEscapeUtils.escapeXml(source);
}

From source file:sf.wicklet.wicketext.util.XmlUtil.java

License:Apache License

@Override
public CharSequence escText(final String source, final boolean preservespace) {
    return StringEscapeUtils.escapeXml(source);
}