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

If the column does not specify the render, the render that prevents XSS is used by default. #8114

Closed
maliming opened this issue Mar 18, 2021 · 0 comments · Fixed by #8116
Closed

Comments

@maliming
Copy link
Member

if (!column.render && column.dataFormat) {
var render = datatables.defaultRenderers[column.dataFormat];
if (render) {
column.render = render;
}
}

https://datatables.net/manual/data/renderers#Number-helper

{
    data: 'product',
    render: $.fn.dataTable.render.text()
}
@maliming maliming changed the title If the column does not specify the render, the prevents XSS is used by default. If the column does not specify the render, the render that prevents XSS is used by default. Mar 18, 2021
@maliming maliming self-assigned this Mar 18, 2021
@maliming maliming added this to the 4.3-preview milestone Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants