Adding text between <> characters renders an empty post. (Example in this post)

Thanks for the explaination. I thought so too.

Is there a function in discourse which simply strips disallowed html ? The usecase is,

In the Custom Wizard plugin we want to disallow a user from submitting a post whose total number of characters excluding these stripped characters is less than the minimum character limit.

Also, now thinking about it, it is relevant to discourse too. Doesn’t it make sense to disallow submission if the rendered content is less than the min character limit? I know this is quite more complex than it sounds.