Fix script inlining to ignore parsing html comments