Encode quotation mark and apostrophe characters in encodeXml().
This commit is contained in:
parent
20402accfa
commit
6b7682b5a3
1 changed files with 6 additions and 0 deletions
|
@ -545,6 +545,12 @@ public final class HtmlEncoder {
|
|||
case '&':
|
||||
ret.append ("&");
|
||||
break;
|
||||
case '"':
|
||||
ret.append (""");
|
||||
break;
|
||||
case '\'':
|
||||
ret.append ("'");
|
||||
break;
|
||||
default:
|
||||
if (c < 0x20) {
|
||||
// sort out invalid XML characters below 0x20 - all but 0x9, 0xA and 0xD.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue