Today I was working on copying data from one database to another. I needed to copy just the text from one field, and leave out any HTML. I found the easiest way to see what was text and what was HTML was to decode it. That’s why I wrote this little tool to help me do the job faster.
This isn’t particularly innovative, but I hope that some find it useful, or at least instructive on how to encode and decode HTML in JavaScript.