Security BLOG

AnQiCMS Help Document and User Guide

How to remove specific tags from the HTML content rendered by Markdown in AnQiCMS?

When managing content in AnQiCMS, we often take advantage of the convenience of Markdown to quickly edit and format articles.However, in certain specific content display scenarios, we may need to exercise more detailed control over the HTML content rendered from Markdown, such as removing unnecessary specific HTML tags.AnQiCMS provides a powerful template engine and rich built-in filters, allowing us to easily achieve this goal.

📅 November 8, 2025 👁️ 70

Why should you be cautious when using the `safe` filter in AnQiCMS, what are the security risks?

In AnQiCMS template development, the `safe` filter is a commonly used and seemingly convenient tool that allows us to output content in its original HTML form to the page instead of being automatically escaped.This is particularly useful for displaying complex layouts created by rich text editors, or embedding specific HTML structures in templates.However, it is precisely this convenience that often hides a significant safety risk that we need to be particularly cautious about when using it. ### `safe` filter: Why to use, and what kind of crisis does it hide?

📅 November 8, 2025 👁️ 71

How can you ensure that HTML tags in user comments are safely handled when displaying them?

In website operation, user comments are an important part of community interaction, which can bring vitality to the content and enhance user stickiness.However, comment sections are often breeding grounds for potential security risks. Malicious users may inject HTML tags or JavaScript code into comment content to launch cross-site scripting attacks (XSS), which not only damage the appearance of the website but may also steal user information or carry out other malicious operations.Therefore, when displaying user comments, ensure that the HTML tags in the comment content are safely processed, which is a matter of great importance for each website operator.

📅 November 8, 2025 👁️ 67

How to specify multiple HTML tags for removal in AnQiCMS's `removetags` filter?

In website content operation, we often need to finely control the way content is displayed, especially for articles containing complex HTML structures.AnQiCMS as an efficient content management system fully considers this point, providing a variety of template filters to help us flexibly handle content, among which the `removetags` filter is a powerful tool for handling HTML tags.

📅 November 8, 2025 👁️ 72

How to implement HTML content cleaning and filtering on the GoLang backend of AnQiCMS?

To implement HTML content cleaning and filtering at the GoLang backend level in AnQiCMS is a crucial link to ensure website content safety, maintain the healthy operation of the website, and improve the user experience.It is particularly important to clean and filter the content submitted by users before storing and displaying it, as it may contain malicious scripts (XSS), irregular HTML tags, and even sensitive information.

📅 November 8, 2025 👁️ 90

How to dynamically modify the `src` attribute of the HTML image tag to `data-src` in the AnQiCMS template for lazy loading?

In AnQiCMS, optimizing website loading speed, especially for pages with a large number of images, is an important factor in improving user experience and search engine rankings.The lazy loading (Lazy Load) technique is a highly efficient solution that allows images to be loaded only when the user scrolls to their position on the page, rather than loading all images at once.For AnQiCMS users, implementing this feature has its unique convenience.Why Choose Lazy Loading for Images? There are many images on websites, especially on article detail pages or product display pages

📅 November 8, 2025 81

How to implement image lazy loading in the `archiveDetail` tag's `Content` field, which HTML attributes do you need to modify?

In website operation, page loading speed and user experience are always the core concerns.Especially when the article content includes a large number of images, the initial loading time of the page often increases significantly, which can not only lead to user loss but also affect the crawling and ranking of search engines.Image lazy loading (Lazy Loading) is an efficient strategy to solve this problem: it only starts loading images when they enter the user's visible area, thus significantly improving page performance.AnQiCMS (AnQiCMS) is an efficient content management system that fully considers this requirement

📅 November 8, 2025 👁️ 65

Does the 'sensitive word filtering' feature modify or remove specific text from the HTML content in AnQiCMS?

In content operation, the compliance and security of content are always of great importance.Especially in today's complex network environment, the sensitive word filtering function has become an indispensable part of a website.AnQiCMS (AnQiCMS) is a corporate-level content management system that focuses on security and efficiency, naturally also provides this key capability.However, concerning whether the 'sensitive word filtering feature in AnQiCMS will modify or remove specific text from the HTML content?

📅 November 8, 2025 👁️ 67

How does AnQiCMS's 'Anti-Capture Interference Code' feature achieve content protection through HTML level processing?

In the era of explosive digital content, the value of original content is becoming increasingly prominent, but the problems of content collection and plagiarism that come with it also cause headaches for countless content creators and enterprises.The dilution of SEO (Search Engine Optimization) effects, damage to brand influence, and even legal disputes are all possible negative impacts of content being maliciously collected.

📅 November 8, 2025 👁️ 70

What are the differences between the `linebreaks` and `linebreaksbr` filters in handling text line breaks?

In AnQi CMS template development, handling newline characters in text content is a common requirement.Sometimes we want to display the text entered by the user in a structured paragraph format, and sometimes we only want to simply convert each newline into an HTML line break tag.At this point, the `linebreaks` and `linebreaksbr` filters come into play.They can all handle line breaks, but in actual applications, the generated HTML structures and semantics are quite different.### `linebreaks` filter

📅 November 8, 2025 👁️ 56