Updated filter html to use preg_replace_callback as preg_replace with /e modifier is depricated in php 5.5