Open tariqporter opened 9 years ago
CsQuery.CQ test = "<p><em>Hello</em><em>World</em></p>"; test.Select("em").Before("{EM_BEFORE}"); test.Select("em").After("{EM_AFTER}"); test.Remove("em"); var test2 = test.Text().Replace("{EM_BEFORE}", "<em>").Replace("{EM_AFTER}", "</em>");
Gets rid of one of the closing </em> s, outputting: <em>Hello<em>World</em> jQuery handles this correctly.
</em>
<em>Hello<em>World</em>
Gets rid of one of the closing
</em>
s, outputting:<em>Hello<em>World</em>
jQuery handles this correctly.