AvaloniaUI / Avalonia.HtmlRenderer

Avalonia front-end for the HtmlRenderer project.
MIT License
135 stars 34 forks source link

HTML Entity support for word-break:break-all #51

Closed tkefauver closed 7 months ago

tkefauver commented 7 months ago

This fixes a bug when using word-break: break-all where HTML Special Entities were not being decoded.

The change decodes all HTML Special Entities during initial parsing in HtmlParser.ParseDocument so ParseToWords technically doesn't need to decode them anymore but this works around the special cases there for WordBreak == CssConstants.BreakAll.

Also included / and entities for decoding.