Created
October 19, 2020 11:55
-
-
Save meirkl/19d545d9025196741e260c75ad9c4632 to your computer and use it in GitHub Desktop.
Revisions
-
meirkl created this gist
Oct 19, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ /** * * @param html encoded html * example: * <p>In this course, you&rsquo;ll learn:</p> * wiill get decoded to: * <p>In this course, you'll learn:</p> */ function decode(html: string) { var txt = document.createElement('textarea'); txt.innerHTML = html; return txt.value; }