DescriptionI LGTMed this at http://codereview.appspot.com/4641064/
Issue 4641064: Factor out a replaceable tagPolicy to enable customization of the sanitizer.
This exposes a hook named 'tagPolicy' in the sanitizer so that the
sanitizer can be customized to accept or transform particular tags,
for example, to accept <iframe> tags with a specific SRC, or transform
<embed> tags into <iframe> tags.
makeTagPolicy, sanitizeAttribs, and sanitizeWithPolicy are factored
out so that they can be easily reused in custom tagPolicy functions.
Submitted @4658
Patch Set 1 #Patch Set 2 : Copy of Ka-Ping's html sanitizer patch. #
Total comments: 3
Patch Set 3 : Copy of Ka-Ping's html sanitizer patch. #
MessagesTotal messages: 5
|
||||||||||||||||||||||||||||||||||||||||||||||