# HG changeset patch # User Sebastian Kruse # Date 1357895745 -3600 # Node ID 4d3df00f5b985030a997cf1aa2f5bd7720b0af61 # Parent a610b45d0f90ddcd440b8fbd4c4c170e4ba4c716 added comments for HTML content in cells diff -r a610b45d0f90 -r 4d3df00f5b98 war/scripts/sti/STICore.js --- a/war/scripts/sti/STICore.js Fri Jan 11 09:41:16 2013 +0100 +++ b/war/scripts/sti/STICore.js Fri Jan 11 10:15:45 2013 +0100 @@ -380,15 +380,17 @@ lastHeader = $(this).text(); isHeader = false; } else { - //var value = $(this).text(); var value = ""; + //if this td contains HTML, serialize all + //it's children (the "content"!) $(this).children().each( function() { value += (new XMLSerializer()).serializeToString(this); } ); + //no HTML content (or no content at all) if (value.length == 0) value = $(this).text();