Hi! The current implementation has a bug. removeTags doen't work properly. Unfortunately the code is hard to maintain. So I suggest to move on to a new code (maybe even in a new class) that is based on the PHP DOM extension. Masi