-
Notifications
You must be signed in to change notification settings - Fork 189
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
Inline block code display issue #2322
Comments
This is a possible duplicate of #1801, #2131, and #2313. I think the solution to this is to fix our The first step to solving this is add a failing test in https://github.com/Seneca-CDOT/telescope/blob/124cf42e3e42a89c7181f6eadbbab40669c28aaa/test/sanitize-html.test.js. Something like: test('unknown tags should get escaped vs. removed', () => {
const data = sanitizeHTML('<code>Closed by <short_name_issue_code>.</code>');
expect(data).toBe('<code>Closed by <short_name_issue_code>.</code>');
}); @Kevan-Y has kindly offered to take up the torch and continue fighting this bug. |
The sanitize-html convert tag like |
I think we have a few bugs here, and your fix for adding The second thing we should explore is what's happening in https://github.com/Seneca-CDOT/telescope/blob/master/src/backend/utils/html/replace-entities.js, which I suspect is also part of the problem here. |
What happened:
This post is not being rendered correctly.
The post contains a single line code
`Closed by <short_name_issue_code>.`
in telescope it is render<code>Closed by <short_name_issue_code>.</short_name_issue_code></code>
What should have happened:
It should render
`Closed by <short_name_issue_code>.`
How to reproduce it (as precise as possible):
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: