Skip to content

Commit

Permalink
Merge pull request #82 from xpadev-net/fix/xml-parser
Browse files Browse the repository at this point in the history
[修正] XMLを読み込む際にエンコードされた文字がデコードされない
  • Loading branch information
xpadev-net authored Dec 6, 2023
2 parents 7e58dd2 + 1e8ab69 commit ce76779
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 ce76779

Please sign in to comment.