Comments (4)
Oh, Iām sorry. #44 This PR maybe causes this issue š. I want to fix this issue, but Iām worried about under what conditions to trust(= not escape text node).
I think that if text node is descendants of <Helmet />
or child of <style />
or <script />
we should not escape text node. What do you think about this?
from nano.
Thanks for your help. I'm already about to fix it :)
I think everything under <Helmet />
should not be escaped.
In addition noscript, script', style elements should also never be auto-escaped.
This behavior should be clear in the docs as well.
Check https://github.com/nanojsx/nano/compare/fix-helmet-ssr
from nano.
Oh! Nice š Looks good, Thanks š
Should we describe this behavior in the dangerouslySetInnerHTML
part of the Docs (added in the above PR)? if you think so, I want to work on this.
from nano.
Should we describe this behavior in the
dangerouslySetInnerHTML
part of the Docs (added in the above PR)? if you think so, I want to work on this.
š
from nano.
Related Issues (20)
- inputs lose focus on... well, input HOT 8
- Cannot use html tags inside renderSSR HOT 3
- Dollar sign causes bad output HOT 8
- Router.Listener() should emit on history.back()
- Omit selected="false" from <option /> HOT 1
- es5 prototype function HOT 3
- Feature Request: Resumability? HOT 1
- Module fails to resolve on versions > `0.0.32` HOT 3
- Updating the docs HOT 1
- Enhancement Suggestion: Making README Dark Mode Compatible HOT 8
- [Feature Proposal] Support for Bun HOT 1
- <html> tag in <Helmet> is not handled properly on SSR HOT 10
- [Bug] didUnmount() event console.log() fired too late on page change HOT 1
- Render to and from AST HOT 1
- Docs: Write docs for #89
- Docs: Write docs for #86
- [Bug] New Helmet client-side TypeError with external template file HOT 3
- New JSX Transform API won't work on deno HOT 4
- Router from array error HOT 5
- Body not expected HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nano.