yadcf icon indicating copy to clipboard operation
yadcf copied to clipboard

Tags inside html properties break column_data_type=rendered_html

Open m417z opened this issue 4 years ago • 2 comments

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

m417z avatar Jul 10 '20 11:07 m417z

Hi m417z

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

Alexisback avatar Dec 11 '20 19:12 Alexisback

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.

m417z avatar Dec 11 '20 19:12 m417z