adobe/aem-core-email-components

HTML inliner

edoardo-goracci opened this issue · 0 comments

Create a service that manages to create HTML attributes to specific elements on the page when certain CSS rules are present.

Define a new configuration in OSGi configuration to customize the use of this new service. The new configuration should be a list, and it must contain the following fields:

  1. HTML element type to be targeted (e.g. "img")
  2. RegEx to match the related CSS property (e.g. "width")
  3. RegEx to extract the actual value to be inserted in the newly created HTML attribute from the CSS property (e.g. "[0-9]+(?=px)")
  4. HTML attribute name to be created
  5. true/false to override the selected HTML attribute value if it is already existing