Skip to content

add unsafe_text#39

Merged
bodil merged 2 commits intobodil:masterfrom
ckampfe:add-unsafe-text
Apr 8, 2019
Merged

add unsafe_text#39
bodil merged 2 commits intobodil:masterfrom
ckampfe:add-unsafe-text

Conversation

@ckampfe
Copy link
Copy Markdown
Contributor

@ckampfe ckampfe commented Mar 27, 2019

Hi! Thanks for your work on typed-html, it's great.
I ran into the same issue as #34.
I basically copied the code around Text and removed the bit that does escaping when rendering to a string. If there's a simpler way or a different approach you would prefer here, let me know.
Thanks!

@bodil
Copy link
Copy Markdown
Owner

bodil commented Apr 8, 2019

I would definitely prefer a different approach - I really don't like the idea of adding another node type here - but I can't think of a better way to do it, and I think it's probably worth the very slight extra overhead to have this feature in the string renderer. So let's merge.

@bodil bodil merged commit 91c3d98 into bodil:master Apr 8, 2019
@ckampfe
Copy link
Copy Markdown
Contributor Author

ckampfe commented Apr 8, 2019

@bodil thanks! I'm not super in love with this approach either, but I couldn't think of anything better either 😆 . If you come up with something else I'd be happy to jump in

@ckampfe ckampfe deleted the add-unsafe-text branch April 10, 2019 03:30
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.

2 participants