Skip to content

Refactor DataUri parsing and improve HTML entity handling - #255

Merged
onizet merged 15 commits into
devfrom
datauri-memspan
Oct 23, 2026
Merged

onizet merged 15 commits into
devfrom
datauri-memspan

Conversation

@onizet

@onizet onizet commented Oct 23, 2026

Copy link
Copy Markdown
Owner
  • Refactor the DataUri parsing to use ReadOnlySpan and avoid excessive string allocation.
  • DataUri now provide a break-circuit if the uri is not an image
  • DataUri is no longer a public class
  • Merge the parsing logic of HtmlAttributeCollection with SplitCompositeAttribute. This gives the robust escaping parsing (parenthesis and quote).
  • HttpUtility is no longer needed and the code was referring to HTML4 which is largely outdated.

@onizet
onizet merged commit c06c10c into dev Oct 23, 2026
4 checks passed
@onizet
onizet deleted the datauri-memspan branch October 23, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant