| 1 |
From 27e4aa8d885e47a296ea78d114dbbe8fc7aa3508 Mon Sep 17 00:00:00 2001 |
| 2 |
From: Kevin Solorio <[email protected]> |
| 3 |
Date: Fri, 1 Feb 2019 14:32:42 -0800 |
| 4 |
Subject: [PATCH] Revert-support-html-h-b-7-1 |
| 5 |
|
| 6 |
--- |
| 7 |
entities.c | 17 ----------------- |
| 8 |
1 file changed, 17 deletions(-) |
| 9 |
|
| 10 |
diff --git a/entities.c b/entities.c |
| 11 |
index 43549bc5..82652f6d 100644 |
| 12 |
--- a/entities.c |
| 13 |
+++ b/entities.c |
| 14 |
@@ -623,23 +623,6 @@ xmlEncodeEntitiesInternal(xmlDocPtr doc, const xmlChar *input, int attr) { |
| 15 |
*out++ = 't'; |
| 16 |
*out++ = ';'; |
| 17 |
} else if (*cur == '&') { |
| 18 |
- /* |
| 19 |
- * Special handling of &{...} construct from HTML 4, see |
| 20 |
- * http://www.w3.org/TR/html401/appendix/notes.html#h-B.7.1 |
| 21 |
- */ |
| 22 |
- if (html && attr && (cur[1] == '{') && |
| 23 |
- (strchr((const char *) cur, '}'))) { |
| 24 |
- while (*cur != '}') { |
| 25 |
- *out++ = *cur++; |
| 26 |
- indx = out - buffer; |
| 27 |
- if (indx + 100 > buffer_size) { |
| 28 |
- growBufferReentrant(); |
| 29 |
- out = &buffer[indx]; |
| 30 |
- } |
| 31 |
- } |
| 32 |
- *out++ = *cur++; |
| 33 |
- continue; |
| 34 |
- } |
| 35 |
*out++ = '&'; |
| 36 |
*out++ = 'a'; |
| 37 |
*out++ = 'm'; |
| 38 |
-- |
| 39 |
2.16.2 |
| 40 |
|