title: Convert element and return contents of element using php
body: <p>I have this element in the DOM derived from a php command.</p>
  
  <pre><code>&lt;a href="https://www.someurl.com/es/atencion-al-cliente"&gt;Atención al cliente&lt;/a&gt;
  </code></pre>
  
  <p>Here is the php command that generates the element above:</p>
  
  <pre><code>&lt;?php icl_link_to_element(2880);?&gt;
  </code></pre>
  
  <p>I need to convert this element in some way so that I only end up with string 'Atención al cliente' stored in a variable so I can use this string for other purposes.</p>
  
  <p>What is the best way to get this done in PHP?</p>