Estimate the escaped length when special characters (&, <, >, quotes, etc.) are converted to HTML entities.
用于预估 HTML 转义后文本长度。