some text... Foobar Fubar Strong foobar There should be no extra space before and after the anchor (stripped). Exception: after an !there should be an extra space. Even with stripped elements inbetween: !there should be an extra space. ignore anchor tags with no link text not ignore anchor tags with images pass through the text of internal jumplinks without treating them as links pass through the text of anchor tags with no href without treating them as links some text... some text...