Hi,
I run into a strange issue while playing with DataTables: The closing tag of img elements are removed when added to table via fnAddData (only img tags). Is this a bug / feature? :)
I run into a strange issue while playing with DataTables: The closing tag of img elements are removed when added to table via fnAddData (only img tags). Is this a bug / feature? :)
<table id="example"> <thead><tr><th/></tr></thead> </table> <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/datatables/1.9.4/jquery.dataTables.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#example').dataTable().fnAddData(['<img src="http://www.datatables.net/media/images/DataTables.jpg">pictext</img>']); alert($("td").html()); }); </script>