Security BLOG

AnQiCMS Help Document and User Guide

In AnQiCMS template, can the `count` filter count the number of occurrences of elements in an array?

In AnQiCMS template development, we often need to handle various data, one common requirement is to count the number of times a specific element or keyword appears.When faced with array or string data, the `count` filter can become your powerful assistant.So, can the `count` filter in the AnQiCMS template count the number of occurrences of elements in an array?The answer is affirmative, it can not only count the word frequency in a string, but also accurately count the number of occurrences of elements in an array.

📅 November 8, 2025 👁️ 55

How to count the frequency of a keyword in a string in AnQiCMS template?

In AnQi CMS template development, we often need to handle and analyze various data of page content.Among them, counting the number of times a specific keyword appears in a string is a very practical need.This not only helps content operators understand the density of keywords, thereby optimizing SEO, but also provides data support for certain feature displays, such as showing how many times a certain feature is mentioned.The Anqi CMS template engine provides a rich set of filter (Filters) functions, which act as mini data processing tools, allowing variables to be formatted, converted, or calculated

📅 November 8, 2025 👁️ 50

Does the `contain` filter support checking array or Map type data in the AnQiCMS template?

During the development of AnQi CMS templates, we often need to decide how to display the page based on the specific content of the data, or determine whether a certain specific element exists in the data we pass in.When dealing with complex arrays or key-value pairs (Map), it is particularly important to make efficient and accurate judgments of this kind.Here, the `contain` filter becomes a very practical tool.### `contain` filter: Flexibly judge whether data contains specified content `contain`

📅 November 8, 2025 👁️ 63

How can I determine if a string contains a specific keyword in the AnQiCMS template?

In the AnQiCMS template, dynamically determining whether a string contains a specific keyword is a very practical feature, which can help us implement various intelligent content display and interaction logic on the website front-end.For example, you can display different icons based on whether the article title contains a specific word, or highlight certain key information in the product description.AnQiCMS uses a template engine syntax similar to Django, providing rich tags and filters to process data.

📅 November 8, 2025 👁️ 64

What string alignment methods do the `ljust` and `rjust` filters implement in the AnQiCMS template?

During the template creation process of Anqi CMS, we often encounter scenarios where we need to format and align text content.Whether it is a list display of product names and prices, or the layout of article titles and dates, a uniform layout can significantly enhance the professionalism and user experience of the website.The Anqi CMS template engine supports syntax similar to Django, providing a series of powerful filters to help us meet these needs.Today, let's discuss in detail two very practical string processing filters: `ljust` and `rjust`

📅 November 8, 2025 👁️ 69

What filter can be used to center align the string content in the AnQiCMS template?

During the process of AnQiCMS template creation, we often need to fine-tune the text content on the page to achieve better visual effects and information presentation.Among them, the alignment of text is a basic but very important requirement.For the string content in the template, AnQiCMS provides some practical filters (filters) to help us achieve centering, left alignment, or right alignment. To align the string content in the center, we can use the `center` filter built into the AnQiCMS template engine.

📅 November 8, 2025 👁️ 58

What are the differences between the `capfirst`, `lower`, `upper`, and `title` AnQiCMS filters?

In Anqi CMS template development, in order to better control the display format of content, the system provides a variety of text processing filters.Among them, `capfirst`, `lower`, `upper`, and `title` are some commonly used filters for adjusting the case of English strings.They each have unique purposes and scope, understanding the differences can help us beautify and standardize page text more accurately.Let's discuss their functions one by one and find out the similarities and differences between them.

📅 November 8, 2025 👁️ 70

How to capitalize the first letter of an English string in AnQiCMS template?

It is crucial to ensure consistency and beauty in the display of text in website content operation.Whether it is user-submitted data, content imported from the outside, or information dynamically generated within the system, we often need to standardize the case of English strings, such as capitalizing the first letter of the title or converting labels to lowercase.AnQiCMS provides a flexible template engine, through built-in filters (Filters), we can easily achieve these case conversion requirements.AnQiCMS uses a template engine syntax similar to Django

📅 November 8, 2025 👁️ 66

How to protect user input through the `addslashes` filter in AnQiCMS template to prevent potential security issues?

In website operation, ensuring the safety of user input content is always one of the core considerations.Any unprocessed user input may become a potential security vulnerability, ranging from destroying the page layout to triggering cross-site scripting (XSS) attacks, harming website visitors.AnQiCMS (AnQiCMS) is a system that emphasizes security and provides various tools to help us meet these challenges, among which the `addslashes` filter in the template is a practical feature.###

📅 November 8, 2025 👁️ 63

What characters are escaped by the `addslashes` filter of AnQiCMS?

In the template development of Anqi CMS, we often need to handle various data, some of which may contain special characters, and directly outputting them to the page may cause display anomalies or parsing errors.At this time, the `addslashes` filter comes into play, which helps us preprocess these special characters to ensure the correct display of content. In particular, what characters does the `addslashes` filter escape?

📅 November 8, 2025 👁️ 66