mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
10 lines
169 B
CoffeeScript
10 lines
169 B
CoffeeScript
|
|
||
|
class Utils
|
||
|
|
||
|
@getTextFromHtml: (html) ->
|
||
|
div = document.createElement('div')
|
||
|
div.innerHTML = html
|
||
|
div.textContent ? div.innerText
|
||
|
|
||
|
module.exports = Utils
|