htmlEscape static method

String htmlEscape(
  1. String s
)

Implementation

static String htmlEscape(String s) {
  s.replaceAll('&',"&");
  s.replaceAll('<',"&lt;");
  s.replaceAll('>',"&gt;");
  return s;
}