String.implement({ 
        toElement: (function() { 
                var div = new Element('div'); 
                return function() { 
                        div.set('html', this); 
                        return div.getFirst(); 
                } 
        })() 
});

