/** * * @param html encoded html * example: * <p>In this course, you&rsquo;ll learn:</p> * wiill get decoded to: *

In this course, you'll learn:

*/ function decode(html: string) { var txt = document.createElement('textarea'); txt.innerHTML = html; return txt.value; }