Errors when getting stored data
Hi,
I am getting errors back from xstandard whenever I retrieve html back from a database saying;
“Code inserted into the editor contains errors and will be discarded. Would you like XStandard to attempt to fix these errors?”
the html is as follows;
<!-- Generated by XStandard version 1.7.0.0 on 2006-06-19T13:25:34 -->
<p>sdsdfgsdfgsdfgsdfg</p>
<p>dsfg</p>
<p>sdfg</p>
<p>sdfgsdfgsdfg</p>
<p>
<img alt="" height="600" src="http://XXXXXXXXXX/website/xstandard/images/J0302953.JPG" width="428" />
</p>
as far as I can tell this is correct XHTML, but it’s the image tag that creates this error.
I am having the same problem with tables.
Do you have any ideas as to why this would be happening ?
Thanks,
I am getting errors back from xstandard whenever I retrieve html back from a database saying;
“Code inserted into the editor contains errors and will be discarded. Would you like XStandard to attempt to fix these errors?”
the html is as follows;
<!-- Generated by XStandard version 1.7.0.0 on 2006-06-19T13:25:34 -->
<p>sdsdfgsdfgsdfgsdfg</p>
<p>dsfg</p>
<p>sdfg</p>
<p>sdfgsdfgsdfg</p>
<p>
<img alt="" height="600" src="http://XXXXXXXXXX/website/xstandard/images/J0302953.JPG" width="428" />
</p>
as far as I can tell this is correct XHTML, but it’s the image tag that creates this error.
I am having the same problem with tables.
Do you have any ideas as to why this would be happening ?
Thanks,
what technology are you using? ASP? PHP? are you escaping the database content when writing it out to the value parameter? if not, your problem are the double quotes...
Patrick H. Lauke / webmaster / University of Salford
co-lead: WaSP Accesibility Task Force
take it to the streets ... WaSP Street Team
personal: splintered | photographia | redux
co-author: Web Accessibility - Web Standards and Regulatory Compliance
Patrick H. Lauke / webmaster / University of Salford
co-lead: WaSP Accesibility Task Force
take it to the streets ... WaSP Street Team
personal: splintered | photographia | redux
co-author: Web Accessibility - Web Standards and Regulatory Compliance


