Mailspring/packages/client-app/internal_packages/composer-markdown/lib/utils.coffee

9 lines
169 B
CoffeeScript

class Utils
@getTextFromHtml: (html) ->
div = document.createElement('div')
div.innerHTML = html
div.textContent ? div.innerText
module.exports = Utils