question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ampersands invalid in Layer or Map names

See original GitHub issue

@arredond commented on Wed Jun 14 2017

Context

When adding an ampersand (&) to a layer or map name, it gets parsed with its HTML entitiy name: '&amp. This doesn’t happen for other special characters tested: / \ · ( ) [ ] $ % ¬ ª º ^` + * + { } ç

Steps to Reproduce

  1. Add an ampersand (&) to a layer or map name
  2. The symbol will be replaced by its HTML entity name ('&amp)
  3. The naming may or may not fail

ampersand

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Jesus89commented, Sep 4, 2017

This bug comes from https://github.com/CartoDB/bug-bounty/issues/152.

I found that notifications and widget’s source also require a sanitizeHTML:

sanitize-notification-widgets

0reactions
rubenmoyacommented, Sep 6, 2017

In production 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

00057: Layer name contains invalid characters—ArcGIS Pro
A layer in the map or selection of layers being shared has a name that contains URL or XML reserved characters that are...
Read more >
error when url resource contains ampersand - Stack Overflow
We have a web api with the following resource url. http://www.example.com/book/bookid/name/bookname. now there are some books which contains ...
Read more >
Documentation - Ampersand.js
Trying to set a property to an invalid type will throw an error. See get and set for more information about getting and...
Read more >
What characters should not be used in ArcGIS for field names ...
For ArcGIS to work with multiple data types, certain characters in field or table names are not supported. These characters include spaces, ...
Read more >
Elements of reference list entries - APA Style
Use an ampersand (&) before the final author's name. ... Incorrect: NIMH. When numerous layers of government agencies are listed as the author...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found