我试图在 CsQuery 中解开一个字符串。该功能有效,但我想在每个标签之间添加一个空格字符。
Dim fragment = CsQuery.CQ.Create(<div>some text</div><div>More text</div>)
Dim unwrapTags = New List(Of String) With {"div"}
For Each s In unwrapTags
fragment(s).Contents.Unwrap() 'Here I want to add a whitespace between every tag
Next
' Should outprint "some text More text ", not "some textMore text"
Return fragment.Render(CsQuery.OutputFormatters.HtmlEncodingMinimum)
达到这种效果的最佳方法是什么?