Skip to content

Handle mj-html-attributes #426

Description

@nevans

https://documentation.mjml.io/#mj-html-attributes

Here's an example of how I'd like to use it:

<mjml>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
  <mj-head>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    <mj-html-attributes>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
      <mj-selector path="a[href]">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
        <mj-html-attribute name="clicktracking">off</mj-html-attribute>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
      </mj-selector>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
    </mj-html-attributes>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
  </mj-head>
...

In order to disable SendGrid's clicktracking for specific emails or specific links (e.g. forgot password).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions