title: How to unescape HTML 5 entities in Java (&apos;)
body: <p>The answers to <a href="https://stackoverflow.com/questions/994331/how-to-unescape-html-character-entities-in-java">this question</a> mostly suggest to use apache-common-text <code>StringEscapeUtils</code>. But this (latest version of commons-text is 1.9) only supports HTML 4, and <a href="https://github.com/tootsuite/documentation/issues/884#issuecomment-864583735" rel="nofollow noreferrer">Mastodon appears to use HTML 5</a> which includes <code>&amp;apos;</code>. How can I decode HTML 5 entities, including <code>&amp;apos;</code>?</p>