Skip to content

Commit

Permalink
[fix/xml-parser] fix: change to use textContent instead of innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
xpadev-net committed Dec 6, 2023
1 parent ce0a2a2 commit 1e8ab69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inputParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const fromXMLDocument = (data: XMLDocument): FormattedComment[] => {
const tmpParam: FormattedComment = {
id: Number(item.getAttribute("no")) || index++,
vpos: Number(item.getAttribute("vpos")),
content: item.innerHTML,
content: item.textContent ?? "",
date: Number(item.getAttribute("date")) || 0,
date_usec: Number(item.getAttribute("date_usec")) || 0,
owner: !item.getAttribute("user_id"),
Expand Down

0 comments on commit 1e8ab69

Please sign in to comment.