New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow special characters #34
Comments
Hi @microcipcip - use {
metaInfo: {
...
__dangerouslyDisableSanitizers: ['title']
}
} I should probably ponder the notion of making the sanitizers a little more lenient of certain characters and only sanitize HTML-relevant symbols like |
Yes, that would be great, symbols like & and hyphen are quite common in the <title> and the meta tags :) |
I've open this again as I guess it should be discussed more, as the alternative ATM seems to be using that long function or use lodash unescape. I guess that that function is set globally and not for each component? |
@microcipcip you're correct - since any deeply nested component overwrites it's parent |
I guess that a global setting is what I need in this case, better than use |
I've dug more into this: When server rendering, if This means that escaping content on the client side does not currently work as intended. This is therefore a bug. I'm looking into various ways to handle this issue, but so far all the methods I have found are either hacks or open XSS vulnerabilities. I'll keep looking. |
Hi @microcipcip - I've added a fix for this, could you update |
Thanks, I'll update it this evening when I get back from work :) |
Hey, it works great, thanks a lot! |
@declandewet I have same issue with meta tags. I have an
become
|
|
I have the same issue as @equinusocio, it escapes query in the url so url is not working anymore. |
Hi, how do you allow special characters?
For example, if you have
This is my title's
, it will render asThis is my title's
which doesn't rendere correctly in thetitle
tagThe text was updated successfully, but these errors were encountered: