mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +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
|