我正在使用HTML Agility Pack,但在没有结束p标签时,无法获得带有内部文本的text或p标签节点:
示例HTML:
<p class=nospace>someobject
<div class="indent">
<p class="nospace"><a class=small href="04.HTM">04</a>
<p class="nospace"><a class=small href="05.HTM">05</a>
<p class="nospace"><a class=small href="06.HTM">06</a>
<p class="nospace"><a class=small href="11.HTM">11</a>
</div>
问题是我想将“ someobject”作为第一个对象,并添加04 05 06和11作为其子对象。我无法获取HTML Agility Pack来加载写为p的p标签
<p class="nospace" />someobject<div class="indent">...