rem: nameInput.value = PrepareStringForURL(nameInput.value.replace(/\s+/g, "_")); 
add: nameInput.value = ConvertToCDATAString(nameInput.value); 
context: function ChangeName(){  if (nameInput.value.length > 0)  {    // Replace spaces with "_" and strip other non-URL characters    // Note: we could use ConvertAndEscape, but then we'd    //  have to UnEscapeAndConvert beforehand - too messy!    nameInput.value = PrepareStringForURL(nameInput.value.replace(/\s+/g, "_"));  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a77f7a0332866ead93a4b2feb8532028f06b3e10/EdNamedAnchorProps.js/buggy/editor/ui/dialogs/content/EdNamedAnchorProps.js