[BOFTWO-904] Implemented better character counter for HTML