Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(81)

Issue 2244042: DefaultHtmlSerializer#serialize() should encode entities in attribute nodes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 4 months ago by chirag
Modified:
14 years, 10 months ago
Reviewers:
Paul Lindner, felix8a, dev-remailer
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Currently DefaultHtmlSerializer#serialize() will run attribute values through printAttributeValue() which contains an incomplete list of entities. This change will use Escaping.escapeXml() instead, which escapes all html entities. http://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/lexer/escaping/Escaping.java#200

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -19 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/DefaultHtmlSerializer.java View 2 chunks +2 lines, -16 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/DefaultHtmlSerializerTest.java View 2 chunks +53 lines, -1 line 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ContentTypeCharsetRemoverRewriterTest.java View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 2
chirag
15 years, 4 months ago (2010-09-18 23:27:53 UTC) #1
Paul Lindner
15 years, 4 months ago (2010-09-19 01:25:21 UTC) #2
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b