Hi Mike, Just on the ampersand issue (and in fairness to Peter, I'm just rewording his post):
> I'm not sure about the ampersand. It's a dynamic field > coming form the > client's inventory database and I don't think I'll be asking > him to change > his inventory and invoicing system just so it can please a > web validator. There's no change required to your client's data or systems, simply an extra step at the ColdFusion display page level. Same as when inserting data into the database you might replace/escape single quotes to avoid SQL errors, when outputting DB content in your page you should substitute characters reserved for XML with their HTML entity. Eg: "e; & < > So rather than <cfoutput>#databasefield#</cfoutput>, you could use <cfoutput>#xmlFormat(databasefield)#</cfoutput> to convert " ' & < > into safe HTML entities. Or, just like Peter's example, you can write your own function. You keep data integrity, the code is valid and the browser displays the expected character. Kind regards and Christmas cheer, Ben ***************************************************** The discussion list for http://webstandardsgroup.org/ *****************************************************
