Hi Steve,
From what I can see the Create Dynamic Array behaviour should create this little function on your page:
function WA_DD_Replace($startStr) {
$startStr = str_replace("'", "|WA|", $startStr);
$startStr = str_replace("\\", "\\\\", $startStr);
$startStr = preg_replace("/[\r\n]{1,}/", " ", $startStr);
return $startStr;
}
Pop that in above your first bit of array code, or check to see if it has been inserted before the array code tries to call the function.
Cheers
Ian