extracting links and smileys