gpt4 book ai didi

c - xmlNodeGetContent 引入换行符

转载 作者:行者123 更新时间:2023-11-30 19:50:10 25 4
gpt4 key购买 nike

似乎 xmlNodeGetContent 引入了不应该出现的换行符。

这是一个节点转储:

ELEMENT td
ATTRIBUTE width
TEXT
content=100%
ATTRIBUTE bgcolor
TEXT
content=#FFFFFF
ELEMENT font
ATTRIBUTE face
TEXT
content=Arial,Helvetica
ELEMENT font
ATTRIBUTE color
TEXT
content=#0000FF
ELEMENT font
ATTRIBUTE size
TEXT
content=-1
ELEMENT b
ELEMENT br
TEXT
content=
ELEMENT hr
ELEMENT font
ATTRIBUTE face
TEXT
content=Arial,Helvetica
ELEMENT font
ATTRIBUTE color
TEXT
content=#0000FF
ELEMENT font
ATTRIBUTE size
TEXT
content=-1
ELEMENT b
TEXT
content=love
ELEMENT br
TEXT
content=
ELEMENT ul
ELEMENT li
ELEMENT small
ELEMENT font
ATTRIBUTE color
TEXT
content=#FF0000
TEXT
content=s
TEXT
content= iubire
ELEMENT font
ATTRIBUTE color
TEXT
content=#FF0000
TEXT
content=f
TEXT
content=; dragoste
ELEMENT font
ATTRIBUTE color
TEXT
content=#FF0000
TEXT
content=f
TEXT
content=; scump
ELEMENT font
ATTRIBUTE color
TEXT
content=#FF0000
TEXT
content=m
TEXT
content=;
ELEMENT font
ATTRIBUTE color
TEXT
content=#0000FF
TEXT
content=to be in love with
TEXT
content= a fi #C3#AEndr#C4#83gostit de;
ELEMENT font
ATTRIBUTE color
TEXT
content=#0000FF
TEXT
content=to send one's love
TEXT
content= a transmite complimente;
ELEMENT font
ATTRIBUTE color
TEXT
content=#0000FF
TEXT
content=love affair
TEXT
content= amor;
ELEMENT font
ATTRIBUTE color
TEXT
content=#0000FF
TEXT
content=lovelorn
TEXT
content= dezn#C4#83d#C4#83jduit
TEXT
content=
ELEMENT li
ELEMENT small
ELEMENT font
ATTRIBUTE color
TEXT
content=#FF0000
TEXT
content=vt
TEXT
content= a iubi; a-i pl#C4#83cea
TEXT
content=

这是 xmlNodeGetContent 返回的文本:

  s iubire f; dragoste f; scump
m; to be in love
with a fi îndrăgostit de; to send
one's love a transmite complimente; love affair amor; lovelorn deznădăjduit
vt a iubi; a-i
plăcea

正如您所看到的,不应该有换行符。

最佳答案

尽管有一些无益的评论(真的,问题是什么并不明显?),我还是想分享我的解释。

额外的行是由于 HTML Tidy 对文档进行美化造成的。

关于c - xmlNodeGetContent 引入换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6546703/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com