title: How can i convert entity character(Escape character) to HTML in QT?
body: <p>I want to  convert entity character(Escape character) to HTML in QT, please help me....</p>
  
  <p>i.e: I want to replace <code>&amp;quot;</code> with <code>"</code>, <code>&amp;gt;</code> with <code>&gt;</code></p>
  
  <p>=====This is my code that not worked====</p>
  
  <pre><code>   QString MyApp::ReplaceString(const QString Data, const QString &amp;Before, const      QString &amp;After)
  {
  
      QString Result = Data;
      Result.replace(Before, After, Qt::CaseInsensitive);
      return Result;
  }
  </code></pre>
  
  <p>========</p>
  
  <pre><code>QTextCodec *codec = QTextCodec::codecForName("UTF-8");
  QByteArray data=pReply-&gt;readAll();
  QString str = codec-&gt;toUnicode((const char *)data);
  
  str = Qt::escape(str);
  str = ReplaceString(str, "&amp;quot;", "\"");   
  
  str = ReplaceString(str,"&amp;gt;", "&gt;");
  </code></pre>