Refactor #10127 Rewrite Import HTML site function
http://tracker.modx.com/issues/10127