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. .settings/
  2. src/
  3. .gitignore
  4. COPYING
  5. GoogleFormat.xml
  6. pom.xml