I need to ask a small question about character encoding in HTML.
When submitting a form, i am doing a client side validation that will read all data from the form and "Escape" it in a way to transform < into > single quotes to ' etc .
function verufymyform(form){
var str = '';
var elem = form.elements;
for(var i = 0; i < elem.length; i++)
{
str = characterEncodingFunction(elem[i].value); //here is the function i am calling
elem[i].value = str; //I think i should add a JS function here??[/size]
[size=3] }
return false;
}[/size]
[size=3]now the problem arises when i have for example a submit button with value "J'accept". When clicking it , its value becomes J'accepte.
What function in javascript should i add so the display is not modified?
thank you in advance.






