Refs #19853; Strip html comments before counting characters