title: jquery find and replace accents to html code
body: <p>I'm using PHP, jQuery and mySQL to build an admin site to my webpage.
  In one of parts of this admin section, I use a <code>&lt;textarea&gt;</code> element to write several lines.
  I'm Spanish and I use á é í ó ú and ñ letters.</p>
  
  <p>I'm looking for any script that replace á to &amp;aacute; </p>
  
  <p>Also I'm still having problems to send <code>&lt;textarea&gt;</code> content to mySQL.</p>
  
  <pre><code>&lt;form action="this_file.php" method="POST"&gt;
      &lt;textarea class="inputcat" type="text" cols="40" rows="5" name="content"&gt;&lt;/textarea&gt;
      &lt;input type="submit" value="upload text" name="submit"&gt;
  &lt;/form&gt;
  &lt;?php
  //allow sessions to be passed so we can see if the user is logged in
  session_start();
  //connect to the database so we can check, edit, or insert data to our users table
  $con = mysql_connect('localhost', 'user', 'pass') or die(mysql_error());
  $db = mysql_select_db('dbname', $con) or die(mysql_error());
      if(isset($_POST['submit'])){
          //insert the row into the database
          $contenido = $_POST['content'];
          $SQL = "INSERT INTO table1 (`ct`) VALUE('" .$contenido. "')";//edited sytanx
          $result = mysql_query($SQL) or die(mysql_error());
      }
  ?&gt;
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>Unknown column 'Ã¬mg' in 'field list'
  fixed error.
  </code></pre>
  
  <p><strong>last thing is to replace áéíóú and ñ letter when user request mysql to read content from a table. áéíóú are in this table and i wanna to replace in real time when user request that content</strong></p>