SaaS CMS has officially launched! Learn more now.

Character limit for XhtmlString


I'm wondering if it's possible to set a character (characters as in letters, no html elements or tags included) limit on a XhtmlString, and if yes, how can I do that? I found this thread from 2008, which suggests using a custom built function.

Nov 02, 2018 9:03

Unfortunately that is not possible to do out of the box, and really hard to get right, I think. 

Some time ago I did however create a validation that displayed a warning to the editor when the text was possibly too long. I stripped out the html and counted the characters.

You can read more here:

Edited, Nov 14, 2018 14:56
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.