title: Cleanning a String from html code and accents with java
body: <p>I need to clean an html string from accents and html accents code, and of course I have found a lot of codes that do this, however, none seems to work with the file i need to clean.</p>
  
  <p>This file contains words like <code>Postulación Ayudantías</code> and also <code>Gesti&amp;oacute;n</code> or <code>&amp;Aacute;rbol</code></p>
  
  <p>I found a lot of codes with text.normalize and regex use to clean the String, which work well with short strings but I'm using very long strings and those codes, which work with short string, doesn't work with long Strings</p>
  
  <p>I am really lost here and I need help please!</p>
  
  <p>This are the codes I tried and didnt work</p>
  
  <p><a href="https://stackoverflow.com/questions/15190656/easy-way-to-remove-utf-8-accents-from-a-string">Easy way to remove UTF-8 accents from a string?</a> (return "?" for every accent in the String)</p>
  
  <p>and I used regular expression to remove the html accent code but neither is working:</p>
  
  <pre><code>string=string.replaceAll("&amp;aacute;","a");
  string=string.replaceAll("&amp;eacute;","e");
  string=string.replaceAll("&amp;iacute;","i");
  string=string.replaceAll("&amp;oacute;","o");
  string=string.replaceAll("&amp;uacute;","u");
  string=string.replaceAll("&amp;ntilde;","n");     
  </code></pre>
  
  <p>Edit: nvm the replaceAll is working I wrote it wrong ("/&aacute; instead of "&aacute;)</p>
  
  <p>Any help or ideas?</p>