If you want to prepopulate an html text field with a string that includes a double quote ("), you need to html-encode it, as " , unfortunately, the string '"abc"' encoded as ""abc"" submitted with the form to the server, is indistinguishable by the server from the string ""abc"" entered literally.
Using ' to delimit the text field value attribute is not an available option, since the input field is being populated from javascript. Escaping the " with \ or \ \ does not work (Firefox); Javascript allows that escaping, but the html renderer just sees the \ and the " as distinct.
Is there a workaround for including " in prepopulated html fields, while allowing the input of raw strings that match html entity names?