String text;
public PlainOutputable(String text) {
- this.text = HTMLEncoder.encodeHTML(text);
+ this.text = text;
}
@Override
public void output(PrintWriter out, Language l, Map<String, Object> vars) {
- out.print(text);
+ if (vars.containsKey(OUT_KEY_PLAIN)) {
+ out.print(text);
+ } else {
+ out.print(HTMLEncoder.encodeHTML(text));
+ }
}
}