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
10 files changed
tree: 4a8420d7b702ef29f9fdbad786b2c4c52a99154f
  1. .gitignore
  2. .settings/
  3. COPYING
  4. GoogleFormat.xml
  5. pom.xml
  6. src/