#1714: Update hook to revert html file type

From issue #1714.