title: Replacing XML entity (&amp; &lt; &gt; &nbsp;) with a placeholder
body: <p>I have a XML file like this;</p>
  
  <pre><code>&lt;Table&gt;
  &lt;Row&gt;
      &lt;Cell&gt;text id&lt;/Cell&gt;
      &lt;Cell&gt;First Text&amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;lt;br/&amp;gt;&lt;/Cell&gt;
      &lt;Cell&gt;Second Text&amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;lt;br/&amp;gt;&lt;/Cell&gt;
  &lt;/Row&gt;
  .
  .
  &lt;/Table&gt;
  </code></pre>
  
  <p>With using these code, I am sending every text inside of <code>&lt;Cell&gt;&lt;/Cell&gt;</code> to a list variable.</p>
  
  <pre><code>tree = ET.parse(file_path)
  root = tree.getroot()
  list = []
  for row in root.iter(tag='Row'):
      for cell in row:
          list.append(cell.text)
  </code></pre>
  
  <p>Problem is <code>First Text&amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;lt;br/&amp;gt;</code> becomes to <code>First Text&lt;br/&gt;&amp;nbsp;&lt;br/&gt;</code></p>
  
  <p>I want to replace these entity characters with placeholders assigned by myself because I have to replace them to original form later in my program. For Example;</p>
  
  <p><code>special character -&gt; [placeholder]
   &amp;lt;br/&amp;gt;       -&gt; [br/]
   &amp;amp;             -&gt; [amp]
   &amp;nbsp;             -&gt; [nbsp]</code></p>