/// <summary> /// Obtiene el texto de los spans de un nodo /// </summary> private string ConvertSpansText(string actualPath, MLNode nodeML) { string text = ""; // Crea el texto a partir de los nodos de span if (nodeML.Nodes.Count == 0) { text = GetSpanText(nodeML.Value, MLBuilder.GetFormats(nodeML), MLBuilder.CheckIsBold(nodeML), MLBuilder.CheckIsItalic(nodeML)); } else { foreach (MLNode childML in nodeML.Nodes) { if (MLBuilder.CheckIsSpanNode(childML)) { text = text.AddWithSeparator(GetSpanText(childML.Value, MLBuilder.GetFormats(childML), MLBuilder.CheckIsBold(nodeML) || MLBuilder.CheckIsBold(childML), MLBuilder.CheckIsItalic(nodeML) || MLBuilder.CheckIsItalic(childML)), " ", false); } else if (MLBuilder.CheckIsLinkNode(childML)) { text = text.AddWithSeparator(GetLinkTag(actualPath, childML), " ", false); } else { text = text.AddWithSeparator(childML.Value, " ", false); } } } // Devuelve el texto convertido return(text); }