extractContainer: minor performance optimization: /<html/i no more executing twice