Transform

When you want to change a result while parsing, you can use the transform method for this.

HTML
<div class="parent">
  <div class="website">www.test.com</div>
</div>
Config
{
    "website": {
        "selector": ".website",
        "transform": (value) => `Link: ${value}`
    },
}
Output
{
    "website": "Link: www.test.com",
}

Last updated