Security BLOG

AnQiCMS Help Document and User Guide

Does the `split` filter retain or remove HTML tags from a string containing HTML tags?

In the operation of daily websites, we often need to process the content obtained in various ways, such as cutting long text into short sentences, or extracting key information from a description.The Anqi CMS template engine provides a series of powerful filters to help us complete these tasks, among which the `split` filter is very commonly used.However, the content is often not just plain text; it may contain various HTML tags, such as paragraph tags `<p>`, bold tags `<b>`, link tags `<a>`, and so on.This raises a universally concerned issue

📅 November 8, 2025 👁️ 73

The `split` filter in SEO optimization, what are the application scenarios for processing keyword strings (such as `"keyword1,keyword2,keyword3"`)?

In AnQiCMS content operation, we often encounter scenarios where we need to handle keyword strings, such as when setting multiple keywords for an article or product in the background, which is usually entered in the form of comma-separated, like `"keyword1, keyword2, keyword3"`.When these string data need to be displayed flexibly in the website front-end template or further processed, the `split` filter becomes a very practical tool.It can easily convert such strings into an actionable array, bringing multiple possibilities for SEO optimization.

📅 November 8, 2025 👁️ 71

How to filter out empty string elements from an array split by the `split` filter?

In AnQi CMS template development, the `split` filter is a very practical tool that can help us quickly split a string of a specific format into an array.For example, we often store the keywords, tags, or other attributes of an article in a field in the form of comma-separated values, and then use the `split` filter to process them when displaying.

📅 November 8, 2025 👁️ 80

How to use the `split` filter to convert multiple tags entered by the user (such as separated by commas) into the array format required for the tag cloud?

In Anqi CMS, content operations often need to handle diverse inputs from users.For example, we may need to allow users to enter multiple keywords as tags on article or product detail pages, which are usually connected by commas or other delimiters.However, in order to display these tags in a beautiful and interactive 'tag cloud' form on the front-end page, each tag needs to be uniquely identified and may be accompanied by a separate link.At this time, converting the single string input by the user into an operable array format has become an important task in template development.

📅 November 8, 2025 👁️ 64

The array elements split by the `split` filter, if further space processing is needed, how should it be配合 other filters?

In Anqi CMS template development, handling strings is a common requirement.When we need to split a string containing multiple values into an array and then process each element of the array to remove spaces, this requires skillfully combining multiple filters.This article will discuss in detail how to achieve this goal in Anqi CMS template and provide practical code examples.The basic of string splitting: `split` filter Firstly, let's get to know the `split` filter.In Anqi CMS template engine, `split`

📅 November 8, 2025 👁️ 61

In AnQiCMS template, can a variable be used as the delimiter for the `split` filter?

In the daily use of the AnQiCMS template, we often encounter scenarios where we need to perform operations on strings, among which the `split` filter is undoubtedly a very practical tool that can help us split a string into an array according to a specified delimiter.However, a common issue during use is: Can this delimiter be dynamically specified using a variable?Today, let's delve into the usage of the `split` filter in AnQiCMS templates regarding delimiters

📅 November 8, 2025 👁️ 60

The `split` filter returns an empty array or an array containing an empty string when processing an empty string?

In AnQi CMS template development, the `split` filter is a very practical tool that can help us flexibly handle string data, splitting it into an array according to the specified delimiter.Whether it is parsing the tag list of an article, handling multi-value settings in configuration files, or performing other scenarios that require splitting strings by specific characters, the `split` filter can excel.However, in the process of use, a common scene that often causes doubts is: when the source string itself is an empty string, the `split` filter will return an empty array

📅 November 8, 2025 👁️ 60

How to determine if a specific element is included in the array split by the `split` filter?

During content management and template development, we often encounter the need to process a string and then determine whether the processed result contains specific information.For example, a document may have multiple tags or categories, and this information is usually stored as a string connected by separators such as commas.When we need to decide the display style of the page based on these tags or categories, it is particularly important to judge whether it contains a specific element.AnQiCMS provides powerful template tags and filters, making such operations simple and intuitive.

📅 November 8, 2025 👁️ 71

The length of the array split by the `split` filter can be obtained through which filter?

During the template development process of AnQi CMS, we often need to handle various data, among which string processing is particularly common.For example, you may need to split a string containing multiple keywords, such as "SEO, website optimization, content marketing", by commas and spaces to display one by one on the page or perform other logical judgments.After a string is successfully split into several parts, we may need to know the number of these parts, which is the length of the array.Luckyly, Anqi CMS provides a concise and efficient filter combination to solve this problem: `split`

📅 November 8, 2025 👁️ 79

Can the `split` filter handle multi-character delimiters, such as splitting a string with "`||`" as the delimiter?

In website content operation, we often encounter situations where we need to process strings.For example, extract multiple tags, keywords from a text field, or split stored data according to specific rules and display them separately.The template engine of AnQiCMS (AnQiCMS) provides rich filters to help us achieve these operations, among which the `split` filter is a powerful tool for string splitting.

📅 November 8, 2025 👁️ 58