Yes, I think that's fine. For an alternative way to decode strings containing html entities please take a look at this answer: https://stackoverflow.com/a/9609450/240324.
I personally like this method more, because it doesn't creates an html element just to decode a string, however it's nothing wrong with your method.