vedmack / yadcf

Yet Another DataTables Column Filter (yadcf)
http://yadcf-showcase.appspot.com/
MIT License
731 stars 285 forks source link

Tags inside html properties break column_data_type=rendered_html #628

Open m417z opened 4 years ago

m417z commented 4 years ago

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 commented 3 years ago

Hi m417z

column_data_type: 'html',
text_data_delimiter: " world ",
m417z commented 3 years ago

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.