-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
How secure is this? #418
Comments
It does not, HTML is allowed to be part of markdown, if you need to sanitize the output you need to pass it through a filter like for example HTML Purifier. |
Alright, thankd |
What's the point of setMarkupEscaped then? |
setMarkupEscaped function is used to escape all the html entities for preventing XSS. But according to my issue the problem I was facing was in my DB I already had sanitized input which wasn't converting to html markup during output. |
alright, thanks |
Applying this works great |
@adaur you are saying to use this instead of |
Would it solve the issue at #421 |
Not instead, in addition to. The new safeLinksEnabled is enabled by default using this PR. I don't know for your issue, since I use a very simple function to replace smilies like
|
Check out |
What potential exploits are there? Does this library sanitize input?
The text was updated successfully, but these errors were encountered: