RunKit + npm:

node v10.24.1
version: master
endpointsharetweet
const text = `<h3 id="create-a-new-post"> <a class="header-anchor" href="#create-a-new-post">#</a> Create a new post </h3>` const cheerio = require('cheerio'); const $ = cheerio.load(text); $('h3').each(function() { console.log($(this).text()); });
Created from: https://npm.runkit.com/
Loading…

no comments

    sign in to comment