Changeset 37095
- Timestamp:
- 2023-01-04T20:59:24+13:00 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XMLConverter.java
r34112 r37095 504 504 } 505 505 506 // TEXT and PROCESSING_INSTRUCTION nodes are handled inside their containing element node 506 else if (nodeType == Node.TEXT_NODE) 507 { 508 String text = xmlNode.getNodeValue(); 509 /* 510 if (output_escaping) { 511 text = StringUtils.replace(text, "&", "&"); 512 text = StringUtils.replace(text, "<", "<"); 513 text = StringUtils.replace(text, ">", ">"); 514 text = StringUtils.replace(text, "'", "'"); 515 text = StringUtils.replace(text, "\"", """); 516 } 517 // Remove any control-C characters 518 text = StringUtils.replace(text, "" + (char) 3, ""); 519 */ 520 521 xmlRepresentation.append(text); 522 } 523 524 // PROCESSING_INSTRUCTION nodes are handled inside their containing element node 507 525 // A type of node that is not handled yet 508 526 else
Note:
See TracChangeset
for help on using the changeset viewer.