mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-26 18:09:03 +01:00
6 lines
128 B
JavaScript
6 lines
128 B
JavaScript
|
const div = document.createElement('div');
|
||
|
export default (html) => {
|
||
|
div.innerHTML = html;
|
||
|
return div.innerText.length;
|
||
|
};
|