Quantcast
Channel: HTML Renderer
Viewing all articles
Browse latest Browse all 693

New Post: issues

$
0
0
Fast & dirty fix (did not tested properly).

In HtmlParser.cs go to method
private static bool ParseHtmlTag(string source, int idx, int length, out string name, out Dictionary<string, string> attributes)
Then go to code:
            attributes = null;
            if (!isClosing && idx + length > spaceIdx)
            {
                ExtractAttributes(source, spaceIdx, length - (spaceIdx - idx), out attributes);
            }

            return isClosing;
Replace to:
            var remainingPart = source.Length >= spaceIdx + 1 ? source.Substring(spaceIdx) : string.Empty;
            bool closedImmediately = string.IsNullOrEmpty(remainingPart) || remainingPart.Trim().StartsWith("/");

            attributes = null;
            if (!isClosing && idx + length > spaceIdx && !closedImmediately)
            {
                ExtractAttributes(source, spaceIdx, length - (spaceIdx - idx), out attributes);
            }

            return isClosing;

Viewing all articles
Browse latest Browse all 693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>