Skip to content
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

Code markdown isn't preserved in card comments #4364

Open
daryl-o opened this issue Nov 24, 2021 · 1 comment
Open

Code markdown isn't preserved in card comments #4364

daryl-o opened this issue Nov 24, 2021 · 1 comment

Comments

@daryl-o
Copy link

daryl-o commented Nov 24, 2021

If you create a code block (like XML) in the comments section of a card, the preview looks fine but the < and > tags are converted to < and > when the comment is saved.

For example

```xml
<foo> here is some XML code </foo>
```

@sridhar391
Copy link
Contributor

@daryl-o if the users added any script tag content like "<script>alert(0);</script>" , we strip the tags to prevent the execution and if the user adds " here is some XML code " , it strips the tags

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

No branches or pull requests

2 participants