String (@Nullable String s, boolean toHTML) { if (s == null) return null; MarkupConverter converter = toHTML ? new HTMLConverter() : new MarkupConverter(); converter.appendWithMarkup(s); return converter.result(); }