Trim

By default muninn trims the spaces of the collected data.

HTML
<div class="parent">
  <div class="blue">     Blue Text      </div>
</div>

Let's get the content of the element with the blue class.

Config
{
    "blueText": ".blue" 
}
Output
{
    "blueText": "Blue Text" 
}

However, this feature can be disabled if desired.

Config
{
    "blueText": {
        "selector": ".blue",
        "trim": false
    } 
}

// or use this shortcut

{
    "blueText": ".blue | non-trim",
}
Output
{
    "blueText": "     Blue Text      " 
}

Last updated