2649e12f64
Replace hardcoded raw HTML length checks (len(text) <= 900/1000/1024) with centralized caption_exceeds_telegram_limit() that strips HTML tags and unescapes entities before measuring against the real 1024-char limit. Fixes logo disappearing when promo discounts add HTML markup to captions.