Currently I’m running the replace like this:
.replace("®", "®")
.replace("°", "°")
.replace("™", "™")
.replace("©", "©")
But that relies on a lot to go right before I get to this point. What’s a better way to do this?
org.apache.commons.StringEscapeUtils.escapeHtml looks like it does what you want.