-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link inside markers description send and invalid JSON error on approval #24
Comments
What is the error message exactly ? I'm asking because the Validator does not check the translation_data parts so a link inside the marker description should pass the validation. Give me all the details you have! |
Paste this in a marker description, and try to send the map for approval. Test The error message i get: On 2012-07-31, at 1:48 PM, Joseph Silvestre wrote:
|
Ok I think I know what happened: a link uses <"> for the html tag. JSON too...so during the decoding, PHP does not understand what is given to him and says "json not well formed". Solution ?
Actually I am surprised that the JSON.stringify javascript function does not do it automatically (maybe there is a parameter for that ?) edit: https://developer.mozilla.org/En/Using_native_JSON parameter "replacer" should do the trick ! If we go client-side and I think that's what we should do. |
Have you done anything about it ? |
Not yet ;)
|
Should we allow links inside the descriptions of a marker?
The text was updated successfully, but these errors were encountered: