fix bug producing html entities in XHTML in resources when rendering

This commit is contained in:
Grahame Grieve 2022-11-17 15:21:39 -03:00
parent 28d107b4ae
commit 4fa05d8297
1 changed files with 2 additions and 4 deletions

View File

@ -239,11 +239,9 @@ public class ElementWrappers {
if (div == null) { if (div == null) {
div = new org.hl7.fhir.r5.elementmodel.Element("div", txt.getProperty().getChild(null, "div")); div = new org.hl7.fhir.r5.elementmodel.Element("div", txt.getProperty().getChild(null, "div"));
txt.getChildren().add(div); txt.getChildren().add(div);
div.setValue(new XhtmlComposer(XhtmlComposer.XML, context.isPretty()).compose(x)); }
} div.setValue(new XhtmlComposer(XhtmlComposer.XML, context.isPretty()).compose(x));
div.setValue(x.toString());
div.setXhtml(x); div.setXhtml(x);
} }
@Override @Override