X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=publishing%2Forg.argeo.publishing.ui%2Fsrc%2Forg%2Fargeo%2Fdocbook%2Fui%2FDbkTextInterpreter.java;h=c6fe0d6212c7c8b983e66a1867374be60c05df2c;hb=228b95119e16b3e88078842b68e3983b999208b1;hp=d56bbf7ecc6b854c2639851d74cf55289ea8628a;hpb=2824e4dce1c2239500f865efaac23f2880b12277;p=gpl%2Fargeo-suite.git diff --git a/publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/DbkTextInterpreter.java b/publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/DbkTextInterpreter.java index d56bbf7..c6fe0d6 100644 --- a/publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/DbkTextInterpreter.java +++ b/publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/DbkTextInterpreter.java @@ -197,6 +197,8 @@ public class DbkTextInterpreter implements TextInterpreter { } else if (child.getName().equals(DbkType.link.get())) { if (child.hasProperty(DbkAttr.XLINK_HREF)) { String href = child.getProperty(DbkAttr.XLINK_HREF).getString(); + // TODO deal with other forbidden XML characters? + href = href.replace("&", "&"); sb.append(""); readAsSimpleHtml(child, sb); sb.append("");