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

The regex itself could also be precompiled and re-used