Fixes #428
This commit is contained in:
parent
f114e66088
commit
37b5be0133
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ proc innerText*(n: PXmlNode): string =
|
|||
result = ""
|
||||
assert n.k == xnElement
|
||||
for i in 0 .. n.s.len-1:
|
||||
if n.s[i].k in {xnText, xnEntity}: result.add(n.fText)
|
||||
if n.s[i].k in {xnText, xnEntity}: result.add(n.s[i].fText)
|
||||
|
||||
proc tag*(n: PXmlNode): string {.inline.} =
|
||||
## gets the tag name of `n`. `n` has to be an ``xnElement`` node.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue