~loges/haitch#12: 
Add unsafe component

It can be that a developer wants to pass already rendered HTML string as a child. In the current state, this is not possible because all string values passed in as a child element are escaped for security purposes. However, we can keep this as the default and expose a unsafe component that wraps an HTML string.

#Proposed implementation

import haitch as H

html_string = "<h1>Header</h1>"
H.unsafe(html_string)
Status
RESOLVED IMPLEMENTED
Submitter
~loges
Assigned to
No-one
Submitted
1 year, 1 month ago
Updated
1 year, 1 month ago
Labels
enhancement

~loges REPORTED IMPLEMENTED 1 year, 1 month ago

Logan Connolly referenced this ticket in commit 49c88ed.

Register here or Log in to comment, or comment via email.