Issue #3233046 by hipp2bsquare, Dmitriy.trt, cedewey, srdtwc: Decode HTML entities when counting characters