trullock / NUglify

NUglify is a HTML, JavaScript and CSS minification Library for .NET (fork of AjaxMin + new features)
Other
396 stars 79 forks source link

Stackoverflow #294

Closed Coldairarrow closed 2 years ago

Coldairarrow commented 2 years ago
class Program
    {
        public static void Main(string[] args)
        {
            var htmlBody = File.ReadAllText("1456167846819143680.txt");
            var content = Uglify.HtmlToText(htmlBody, HtmlToTextOptions.KeepStructure).Code;

            Console.ReadLine();
        }
    }
trullock commented 2 years ago

I'm 100% sure you shouldn't be sharing private corporate emails as repo steps publically on github, I've redacted the file you've posted for that reason.

I'm 200% sure trying to parse gobeldygook as HTML wont do what you expect

I'm 80% sure this is spam, so I'm closing this.

FYI the HTML parser is susceptible to stack overflows with gigantic DOMs, as its a recursive parser. PRs welcome to modify this.