detag.js 109 Bytes
Newer Older
hyeryung's avatar
hyeryung committed
1 2 3 4 5
'use strict'

const TAG_ALL_RX = /<[^>]+>/g

module.exports = (html) => html && html.replace(TAG_ALL_RX, '')