this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Memoize getHTMLText

+3 -1
+3 -1
src/utils/getHTMLText.jsx
··· 1 + import mem from './mem'; 2 + 1 3 const div = document.createElement('div'); 2 4 function getHTMLText(html) { 3 5 if (!html) return ''; ··· 10 12 return div.innerText.replace(/[\r\n]{3,}/g, '\n\n').trim(); 11 13 } 12 14 13 - export default getHTMLText; 15 + export default mem(getHTMLText);