Estimate the escaped length when special characters (&, <, >, quotes, etc.) are converted to HTML entities.
用於預估 HTML 轉義後文本長度。