Skip to content

feat: support raw HTML content via __html object#6

Merged
han4wluc merged 2 commits intomainfrom
feature/raw-html-support
Dec 9, 2025
Merged

feat: support raw HTML content via __html object#6
han4wluc merged 2 commits intomainfrom
feature/raw-html-support

Conversation

@han4wluc
Copy link
Copy Markdown
Contributor

@han4wluc han4wluc commented Dec 9, 2025

Allow content values to be objects with an __html property, which inserts the HTML string directly without escaping.

convertToHtml([{ div: { __html: '<b>bold</b>' } }]);
// → '<div><b>bold</b></div>'

@han4wluc han4wluc merged commit ea3124e into main Dec 9, 2025
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