Ejemplo n.º 1
0
        /// <summary>
        /// Get the name from the "<div class="caption">" tag
        /// We have to use this method as we can't use "selector" inside "selector" - "startindex" out of range exception
        /// </summary>
        /// <param name="text">Text with html tags</param>
        /// <returns></returns>
        private string NameResolver(string text)
        {
            var htmlAdapter = new XPathSelector();

            return(htmlAdapter.Select(text, "//div[contains(@class, 'caption')]").InnerText);
        }