This is great except there's a bug in here too. If you are passing in an iframe tag with a closing iframe tag, you will wind up replacing the closing iframe tag with </img class="MyIframe" > On postFilter, it gets messed up. To fix this problem, just replace $html in the preFilter with: preg_replace("/<\/iframe>/", "", $html) Thank you Jab SO MUCH for your solution. It saved mby shmuel613 - Support