Bugs fixed and html purification(using DOMDocument) added ...