Dominator.stripTags

Removes tags and returns plain inner content

  1. string stripTags(Node node)
  2. string stripTags()
    class Dominator
    string
    stripTags
    ()

Examples

const string content = `<div><h2>bla</h2><p>fasel</p></div>`;
Dominator dom = new Dominator(content);
assert( dom.stripTags() == "blafasel", dom.stripTags());

Meta