Hide SafeHtml.asString from client code

Converting a SafeHtml into a String may lead to unsafe patterns
such as calling setInnerHTML directly, possibly after doing an
unsafe string concatenation.  By hiding the method we reduce
the ability for client code to make this innocent mistake.

Signed-off-by: Shawn O. Pearce <sop@google.com>
3 files changed
tree: 69a39dc38584779ded1fab0256baf32ba169af26
  1. .settings/
  2. src/
  3. .gitignore
  4. COPYING
  5. pom.xml