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

Tags inside html properties break column_data_type=rendered_html #628

Open
m417z opened this issue Jul 10, 2020 · 2 comments
Open

Tags inside html properties break column_data_type=rendered_html #628

m417z opened this issue Jul 10, 2020 · 2 comments

Comments

@m417z
Copy link
Contributor

m417z commented Jul 10, 2020

Example: https://jsfiddle.net/pfnmvaex/

The rendered html is:

<abbr title="hello<br>world">some_text</abbr>

The result, as can be seen in the JSFiddle above:
image

@Alexisback
Copy link

Hi m417z

column_data_type: 'html',
text_data_delimiter: " world ",

@m417z
Copy link
Contributor Author

m417z commented Dec 11, 2020

Using column_data_type: 'html' has a different use case. Change the render function to the following and see the difference:
return '<abbr title="hello<br>world">Mr. ' + x + '</abbr>';

As for the issue itself, I suspect that it might actually be a limitation of DataTables, not the plugin. I didn't investigate too much since I found a workaround for my case.

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