commit | bd240d4d6252d1b50370b2cb0edf3b568f1b569d | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Thu Apr 04 10:22:58 2013 -0700 |
committer | Dave Borowitz <dborowitz@google.com> | Thu Apr 04 17:05:08 2013 -0700 |
tree | 4a8420d7b702ef29f9fdbad786b2c4c52a99154f | |
parent | 5cf7afbd2fc648563b5b0df56a23cae8f92f33f3 [diff] |
Implement safe find/replace for user-provided links Extract an interface out of RegexFindReplace for replacement with arbitrary types of sanitization or other munging. Implement a LinkFindReplace that knows how to sanitize links with SafeHtmlBuilder. Push the replacement into the FindReplace interface so implementations can do sanitization _after_ regular expression replacement. Change-Id: I46383abd1921a11b4c90b80b2022051fc0c8e13c