Both tables (below) are bound to the same CSV database file, whose contents are:
Ordinary,formatted
Unformatted text,"<font color=blue size=+2>I'm
<B><I>very</b></i>formatted!</font>"
More unformatted text,<b>You can even do this - <img
src='PCPmlogo.gif'></b>
In the first table, the second column contains a SPAN with a DATAFORMATAS attribute set to "HTML", like this:
<td width="400"><div datafld="Formatted" DATAFORMATAS="HTML"></div></td>IE4 treats the contents of the "Formatted" field as HTML, with these results.
Non-HTML text | HTML text |
In the second table, the second column contains a SPAN with a DATAFORMATAS attribute set to "Text", like this:
<td width="400"><div datafld="Formatted" DATAFORMATAS="Text"></div></td>("Text" is the default DATAFORMATAS value, so you don't actually need to state it).
IE4 treats the contents of the "Formatted" field as ordinary text, with these results.
Non-HTML text | HTML text NOT interpeted as HTML |