muninn
GitHubExtensionWope
  • Introduction
  • Config
    • Basic
    • Selector
    • Array
    • Attribute
    • Type
    • Regex
    • Transform
    • Array Transform
    • Exist
    • Schema
    • Trim
    • Initial
    • Fill
    • HTML
    • Methods
Powered by GitBook
On this page

Was this helpful?

  1. Config

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",
}
PreviousRegexNextArray Transform

Last updated 2 years ago

Was this helpful?