Hi Mukund, Let me make it clearer to you. My situation is: I have a textbox to input the data named Username for example. The user input a string that contains the single quote, e.g. "Mukund's name", then I it was saved into MySQL database.
The text was converted automatically into "Mukund&s name" in the record inside the database. So, when I view that record on my webpage to edit it, the text inside my editbox is exactly "Mukund's name". I understand what you mean about the browser automatic convertion, but it won't translate it inside the textbox. I'm not clear aobut your advice to use html_escape(). This helper will turns single quote " '" into '. What I need is the reverse direction: converting ' back to single quote " '". -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

