HTML

Rarely, we may want to get the content of an element as html.

HTML
<div class="parent">
  <div class="blue">Blue Text</div>
</div>
Config
{
    "parentHTML": {
        "selector": ".parent",
        "html": true
    } 
}

// or use this shortcut

{
    "parentHTML": ".parent | html"
}
Output
{
    "parentHTML": "<div class=\"blue\">Blue Text</div>" 
}

Last updated