How to get the actual character length of a string (including Chinese) in Anqi CMS template?
When making website templates, we often need to control the display length of text to ensure that the page layout is beautiful and information is conveyed efficiently.For example, limit the number of characters in the article summary, ensure that the text in the navigation menu is not too long, or perform character count verification before submitting the form.The AnQi CMS template engine provides a very practical filter called `length`, which can easily obtain the actual character length of strings, arrays, or key-value pairs, and has good support for Chinese.