Categories Development Node.js Cheerio scraper, replace element Tags Cheerio, Node.js No Comments on Node.js Cheerio scraper, replace element let table = $('table'); if ($(table).has('br')) { $("br").replaceWith(" "); } Post author By Igor Savinkin Post date February 23, 2021 ← DOM selector excluding certain elements → How to print out requestQueue info (Apify) at run time Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Δ This site uses Akismet to reduce spam. Learn how your comment data is processed.