private static void fixSpan( CQ doc ){ foreach (var c in doc ["span"]) { if (c.ChildNodes.Length == 1) { c.InnerText = c.InnerText + " "; } } }