static DTD createDTD() { DTD dtd = new DTDEx(); dtd = ParserDelegator.createDTD(dtd, "html32"); // add apos entity. see bug# 24533 dtd.defEntity("apos", DTD.GENERAL, '\''); return dtd; }