在XML文档中,页面上的字符<、>、&、"、'应该转换为实体。
字符 | < | > | & | " | ' |
---|---|---|---|---|---|
实体 | < | > | & | " | ' |
脚本
UltraEdit.activeDocument.findReplace.replaceAll = true; UltraEdit.activeDocument.findReplace.replace("&", "&"); UltraEdit.activeDocument.findReplace.replace("<", "<"); UltraEdit.activeDocument.findReplace.replace(">", ">"); UltraEdit.activeDocument.findReplace.replace("/"", """); UltraEdit.activeDocument.findReplace.replace("'", "'");