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

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>" 
}
PreviousFillNextMethods

Last updated 3 years ago

Was this helpful?