limcheekin / jquery-validation-ui

JQuery Validation UI Plugin - Client Side Validation without writing JavaScript
http://limcheekin.github.io/jquery-validation-ui/
Apache License 2.0
20 stars 18 forks source link

i18n Messages that have single quotes in them are not escaped properly #15

Closed bluesliverx closed 11 years ago

bluesliverx commented 12 years ago

Any message that is resolved in the javascript by renderValidationScript is not escaped if a single quote is present in the message, resulting in an "unknown identifier" javascript message.

This needs to be escaped in the service in getMessage and getTypeMismatchMessage. I'm working on a pull request for it.