Validate the HTML-encoded description bytes is < 4000.
The flow goes like this:
User enters a description markdown of something like 3000 chars. Frontend validations are fine with that.
User clicks save - CMS saves the markdown plus the HTML encoded version to the database.
After save, we decode the description field from the API (the HTML-encoded one)... calculate byte length, and highlight the field in red with the text "Description is too long"
Since this is a strict validation, user is prevented from publishing the episode until they fix the problem.
Validate the HTML-encoded description bytes is < 4000.
The flow goes like this:
description
field from the API (the HTML-encoded one)... calculate byte length, and highlight the field in red with the text "Description is too long"