0

To use email in a firebase location you need to convert it to a string replacing '.' etc. Is there a javascript function available for that somewhere? Or can the folks at firebase publish it please? eg.

var email = "a@example.com"
var id = createIdFromEmail(email)
var ref = new Firebase('https://somedemo.firebaseIO-demo.com/users/' + id)

I want the createIdFromEmail function. Thanks.

Santosh
  • 1,888
  • 2
  • 15
  • 13
  • 1
    Check out the `escapeEmailAddress` function here: [http://stackoverflow.com/questions/14963776/how-to-access-specific-data-with-firebase/14965065#14965065](http://stackoverflow.com/questions/14963776/how-to-access-specific-data-with-firebase/14965065#14965065)]. – Rob DiMarco Jul 12 '13 at 16:29
  • Thanks thats what I was looking for. – Santosh Jul 13 '13 at 02:06

0 Answers0