(docxFile, path)
| 1880 | |
| 1881 | |
| 1882 | function readXmlFromZipFile(docxFile, path) { |
| 1883 | if (docxFile.exists(path)) { |
| 1884 | return docxFile.read(path, "utf-8") |
| 1885 | .then(stripUtf8Bom) |
| 1886 | .then(read); |
| 1887 | } else { |
| 1888 | return promises.resolve(null); |
| 1889 | } |
| 1890 | } |
| 1891 | |
| 1892 | |
| 1893 | function stripUtf8Bom(xmlString) { |
no outgoing calls
no test coverage detected