Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

fnAddData img closing tag removed

$
0
0
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? :)

<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>

Viewing all articles
Browse latest Browse all 1816

Trending Articles