Cheerio

Cheerio #

Change tags of existing elements #

Example: change all ‘’ tags to ‘’ tags.

$('UL').find('LI').each((i, item) => (item.tagName = 'SECTION'))