Mailspring/internal_packages/composer-markdown/lib/utils.coffee

10 lines
169 B
CoffeeScript
Raw Normal View History

2016-08-31 10:23:01 +08:00
class Utils
@getTextFromHtml: (html) ->
div = document.createElement('div')
div.innerHTML = html
div.textContent ? div.innerText
module.exports = Utils