Trim
By default muninn trims the spaces of the collected data.
<div class="parent">
<div class="blue"> Blue Text </div>
</div>
Let's get the content of the element with the blue
class.
{
"blueText": ".blue"
}
{
"blueText": "Blue Text"
}
However, this feature can be disabled if desired.
{
"blueText": {
"selector": ".blue",
"trim": false
}
}
// or use this shortcut
{
"blueText": ".blue | non-trim",
}
{
"blueText": " Blue Text "
}
Last updated
Was this helpful?