Deleting a node

Deleting a node

Hi,

How can I delete a tag when backspace or delete key is pressed?
 
Scenario:
 
I have text and html like this:
 
text: << sometext>>
 
html:
 
<p><span id="ChevronSPAN4">
<a id="chevronStart0"  href="#ChevronSPAN4" target="_blank">&lt;&lt;</a>
<a  href="#ChevronSPAN4" target="_blank">&gt;&gt;</a>&nbsp;</span></p>
<p><span>&nbsp;</span></p>


 
When the user presses delete or bacspace when the curosr is at "<<" or ">>" i want to delete correponding (previous or next span tag)
 
Reagrds,
Sandee