Search code examples
mailto

Mailto address seems to be encoded


I found a mailto link, I want to copy the address and paste into Gmail, but the address is 00000161-c34c-d3fa-abfd-dffd89fd0000#a#anon#d#playbill.com. The final # seems to be in place of an @, but the rest of it seems like an encoding I've never seen before. Can anyone tell me what this is?


Solution

  • If you look at the source code, the encoding method is quite clear:

    <a class="jobs-email" href = "mailto:00000161-c34c-d3fa-abfd-dffd89fd0000#a#anon#d#playbill.com" onclick = "this.href=this.href.replace(/#a#/,'&#64;').replace(/#d#/,'&#46;')" data-cms-ai="0"> 00000161-c34c-d3fa-abfd-dffd89fd0000... </a>
    

    Specifically:

       .replace(/#a#/,'&#64;').replace(/#d#/,'&#46;')
    //                  @                       .
    

    Thus, the email is:

    [email protected]