ArthurHub / HTML-Renderer

Cross framework (WinForms/WPF/PDF/Metro/Mono/etc.), Multipurpose (UI Controls / Image generation / PDF generation / etc.), 100% managed (C#), High performance HTML Rendering library.
https://htmlrenderer.codeplex.com/
BSD 3-Clause "New" or "Revised" License
1.24k stars 522 forks source link

Parsing Emoji throw an exception #175

Open stanislav-poliakov opened 4 years ago

stanislav-poliakov commented 4 years ago
<span>&#128522;</span>

System.OverflowException: 'Value was either too large or too small for a character.'

This exception was originally thrown at this call stack:
    System.Convert.ToChar(long)
    TheArtOfDev.HtmlRenderer.Core.Utils.HtmlUtils.DecodeHtmlCharByCode(string)
    TheArtOfDev.HtmlRenderer.Core.Utils.HtmlUtils.DecodeHtml(string)
    TheArtOfDev.HtmlRenderer.Core.Dom.CssBox.ParseToWords()
    TheArtOfDev.HtmlRenderer.Core.Parse.DomParser.CorrectTextBoxes(TheArtOfDev.HtmlRenderer.Core.Dom.CssBox)
    ...
    [Call Stack Truncated]
bielik01 commented 4 years ago

this one is resolved by commit c6b3929

leichelkraut1 commented 4 years ago

Bump how far down the line is a new nuget package with that commit