Skip to content

Commit 906dfe3

Browse files
authored
Merge pull request #1412 from gitbrent/pr-1408
encode xml entities in company name in generated app.xml
2 parents 24ab5cc + cafdd9c commit 906dfe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gen-xml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ export function makeXmlApp (slides: PresSlide[], company: string): string {
14951495
${slides.map((_slideObj, idx) => `<vt:lpstr>Slide ${idx + 1}</vt:lpstr>`).join('')}
14961496
</vt:vector>
14971497
</TitlesOfParts>
1498-
<Company>${company}</Company>
1498+
<Company>${encodeXmlEntities(company)}</Company>
14991499
<LinksUpToDate>false</LinksUpToDate>
15001500
<SharedDoc>false</SharedDoc>
15011501
<HyperlinksChanged>false</HyperlinksChanged>

0 commit comments

Comments
 (0)