Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm:
node v10.24.1
version:
master
endpoint
share
tweet
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