For instance consider the following string:
<div><span class="author-advanced">hello <b>everyone</b></span></div>
It should print:
hello everyone
I'm using HTML5 editor. I've saved this string in mysql db and after retrieving it, I want to append it to text editor while keeping all formatting. What function/approach should be adopted to fix this?