rem: name = PrepareStringForURL(name); 
add: name = ConvertToCDATAString(name); 
context: function ValidateData(){  var name = TrimString(nameInput.value);  if (!name)  {      ShowInputErrorMessage(GetString("MissingAnchorNameError"));      SetTextfieldFocus(nameInput);      return false;  } else {    // Replace spaces with "_" and strip other characters    // Note: we could use ConvertAndEscape, but then we'd    //  have to UnConverAndEscape beforehand - too messy!    name = PrepareStringForURL(name);    if (originalName != name && AnchorNameExists(name))    {      ShowInputErrorMessage(GetString("DuplicateAnchorNameError").replace(/%name%/,name));                  SetTextfieldFocus(nameInput);      return false;    }    globalElement.setAttribute("name",name);  }  return true;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/a77f7a0332866ead93a4b2feb8532028f06b3e10/EdNamedAnchorProps.js/buggy/editor/ui/dialogs/content/EdNamedAnchorProps.js