From 3011b37df4444c1aeca2bdaf72f169691f5c0aee Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Thu, 16 Feb 2023 10:07:18 +1100 Subject: [PATCH] fix bugs in XHTML parser (common entities) --- .../hl7/fhir/utilities/xhtml/XhtmlParser.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/XhtmlParser.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/XhtmlParser.java index de2bc890c..1514b9d58 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/XhtmlParser.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/xhtml/XhtmlParser.java @@ -1325,7 +1325,7 @@ public class XhtmlParser { private void defineEntities() { definedEntities.put("Æ", "\u00C6"); - definedEntities.put("&", "\u0026"); +// definedEntities.put("&", "\u0026"); definedEntities.put("Á", "\u00C1"); definedEntities.put("Ă", "\u0102"); definedEntities.put("Â", "\u00C2"); @@ -1477,7 +1477,7 @@ public class XhtmlParser { definedEntities.put("ℱ", "\u2131"); definedEntities.put("ℱ", "\u2131"); definedEntities.put("Ѓ", "\u0403"); - definedEntities.put(">", "\u003E"); +// definedEntities.put(">", "\u003E"); definedEntities.put("Γ", "\u0393"); definedEntities.put("Ϝ", "\u03DC"); definedEntities.put("Ğ", "\u011E"); @@ -1550,7 +1550,7 @@ public class XhtmlParser { definedEntities.put("𝕂", "\uD835\uDD42"); definedEntities.put("𝒦", "\uD835\uDCA6"); definedEntities.put("Љ", "\u0409"); - definedEntities.put("<", "\u003C"); +// definedEntities.put("<", "\u003C"); definedEntities.put("Ĺ", "\u0139"); definedEntities.put("Λ", "\u039B"); definedEntities.put("⟪", "\u27EA"); @@ -1730,7 +1730,7 @@ public class XhtmlParser { definedEntities.put("∝", "\u221D"); definedEntities.put("𝒫", "\uD835\uDCAB"); definedEntities.put("Ψ", "\u03A8"); - definedEntities.put(""", "\\u0022"); + //definedEntities.put(""", "\\u0022"); definedEntities.put("𝔔", "\uD835\uDD14"); definedEntities.put("ℚ", "\u211A"); definedEntities.put("𝒬", "\uD835\uDCAC"); @@ -1939,7 +1939,7 @@ public class XhtmlParser { definedEntities.put("α", "\u03B1"); definedEntities.put("ā", "\u0101"); definedEntities.put("⨿", "\u2A3F"); - definedEntities.put("&", "\u0026"); +// definedEntities.put("&", "\u0026"); definedEntities.put("∧", "\u2227"); definedEntities.put("⩕", "\u2A55"); definedEntities.put("⩜", "\u2A5C"); @@ -1970,7 +1970,7 @@ public class XhtmlParser { definedEntities.put("⩯", "\u2A6F"); definedEntities.put("≊", "\u224A"); definedEntities.put("≋", "\u224B"); - definedEntities.put("'", "\u0027"); +// definedEntities.put("'", "\u0027"); definedEntities.put("≈", "\u2248"); definedEntities.put("≊", "\u224A"); definedEntities.put("å", "\u00E5"); @@ -2397,7 +2397,7 @@ public class XhtmlParser { definedEntities.put("≳", "\u2273"); definedEntities.put("⪎", "\u2A8E"); definedEntities.put("⪐", "\u2A90"); - definedEntities.put(">", "\u003E"); +// definedEntities.put(">", "\u003E"); definedEntities.put("⪧", "\u2AA7"); definedEntities.put("⩺", "\u2A7A"); definedEntities.put("⋗", "\u22D7"); @@ -2644,7 +2644,7 @@ public class XhtmlParser { definedEntities.put("‘", "\u2018"); definedEntities.put("‚", "\u201A"); definedEntities.put("ł", "\u0142"); - definedEntities.put("<", "\u003C"); +// definedEntities.put("<", "\u003C"); definedEntities.put("⪦", "\u2AA6"); definedEntities.put("⩹", "\u2A79"); definedEntities.put("⋖", "\u22D6"); @@ -2990,7 +2990,7 @@ public class XhtmlParser { definedEntities.put("⨖", "\u2A16"); definedEntities.put("?", "\u003F"); definedEntities.put("≟", "\u225F"); - definedEntities.put(""", "\\u0022"); +// definedEntities.put(""", "\\u0022"); definedEntities.put("⇛", "\u21DB"); definedEntities.put("⇒", "\u21D2"); definedEntities.put("⤜", "\u291C");