Double php dom parser. Remove way generator