title: How to extract text with html link?
body: <p>I try to parse an HTML page using BaseX.
  From this part of code:</p>
  
  <pre><code> &lt;td colspan="2" rowspan="1" class="light comment2 last2"&gt;
    &lt;img class="textalign10" src="templates/comment10.png" 
         alt="*" width="10" height="10" border="0"/&gt;
    &lt;a shape="rect" href="mypage.php?userid=26682"&gt;user&lt;/a&gt;
    : the text I'd like to keep [&lt;a shape="rect" 
    href="http://alink" rel="nofollow"&gt;Link&lt;/a&gt;] . with that part too.
   &lt;/td&gt;
  </code></pre>
  
  <p>I need to extract the message with the <code>a</code> HTML link, <em>and</em> remove the first <code>:</code> characters at the beginning.</p>
  
  <p>I would like to obtain this exact text:</p>
  
  <pre><code>&lt;message&gt;
  the text I'd like to keep [&lt;a shape="rect" href="http://alink" rel="nofollow"&gt;Link&lt;/a&gt;] . with that part too.
  &lt;/message&gt;
  </code></pre>
  
  <p>Using this function,</p>
  
  <pre><code>declare
   function gkm:node_message_from_comment($comment as item()*) {
    if ($comment) then
      copy $c := $comment
      modify (
        delete node $c/img[1],
        delete node $c/a[1],
        delete node $c/@*,
        rename node $c as 'message'
      )
      return $c
    else ()
  };
  </code></pre>
  
  <p>I can extract the text, but I failed to remove the <code>:</code> from the begining.
  ie:</p>
  
  <pre><code>&lt;message&gt;
  : the text I'd like to keep [&lt;a shape="rect" href="http://alink" rel="nofollow"&gt;Link&lt;/a&gt;] . with that part too.
  &lt;/message&gt;
  </code></pre>