private String clean(final String value) { return StringUtil.escapeBasicHtmlChars(value); }
/** * Returns the mutation description with special characters escaped * * @return Escaped description string */ @Deprecated public String getHtmlSafeDescription() { // fixme this should not be here used in string template return StringUtil.escapeBasicHtmlChars(this.description); }
public static String escapeBasicHtmlChars(final String s) { final StringBuilder sb = new StringBuilder(); escapeBasicHtmlChars(s, sb); return sb.toString(); }
@Override public Line apply(final String a) { final Line l = new Line(this.lineNumber, StringUtil.escapeBasicHtmlChars(a), lineCovered(this.lineNumber), getMutationsForLine(this.lineNumber)); this.lineNumber++; return l; }
private void writeLineCoverage(final BlockCoverage each, final Writer out) { final Location l = each.getBlock().getLocation(); write( out, "<block classname='" + l.getClassName().asJavaName() + "'" + " method='" + StringUtil.escapeBasicHtmlChars(l.getMethodName().name()) + StringUtil.escapeBasicHtmlChars(l.getMethodDesc()) + "' number='" + each.getBlock().getBlock() + "'>"); write(out, "<tests>\n"); final List<String> ts = new ArrayList<>(each.getTests()); Collections.sort(ts); for (final String test : ts) { write(out, "<test name='" + StringUtil.escapeBasicHtmlChars(test) + "'/>\n"); } write(out, "</tests>\n"); write(out, "</block>\n"); }
private String clean(String value) { return StringUtil.escapeBasicHtmlChars(value); }
/** * Returns the mutation description with special characters escaped * * @return Escaped description string */ @Deprecated public String getHtmlSafeDescription() { // fixme this should not be here used in string template return StringUtil.escapeBasicHtmlChars(this.description); }
public static String escapeBasicHtmlChars(final String s) { final StringBuilder sb = new StringBuilder(); escapeBasicHtmlChars(s, sb); return sb.toString(); }