strips templates and links, doesn't work for embedded templates or links