commit | 30190077dc375cbc19de161a36a93db9bdc38e73 | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Sun Mar 01 15:05:07 2009 -0800 |
committer | Shawn O. Pearce <sop@google.com> | Sun Mar 01 15:05:07 2009 -0800 |
tree | 69a39dc38584779ded1fab0256baf32ba169af26 | |
parent | 46a7b809dd1b2432dcb0136e58884ae47e29f796 [diff] |
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>