In AnQiCMS, content management is one of the core functions, and how to ensure the quality and security of published content is a focus for many website operators.About 'Can the default HTML content filtering policy be applied to all new published content?'This is indeed a topic worth discussing.
From AnQiCMS provided features, the system has adopted a multi-dimensional strategy in terms of content safety and filtering, and some of the functions can indeed have an impact on the HTML structure of newly published content.
Core Feature Exploration: Link Handling Strategy in Content Settings
Whether to automatically filter external linksThe option of “”.
This feature is very critical for many website operators.When we enable it, the system will automatically detect external links in the content at the time of publishing.
- Automatically Remove External LinksIf this option is checked and configured as strict filtering, then all HTML pointing to external sites in the content
<a>Tags will be removed.This helps maintain the purity of the website content, avoids users being redirected to irrelevant external sites, and also reduces the risk of the website being used as a channel for spreading spammy external links. - Add
rel="nofollow"Property:Another common approach is that the system retains external links but automatically addsrel="nofollow"Property.This is very important for SEO optimization, it tells the search engine not to track these links, and will not pass the weight of the current website to the target site, effectively avoiding the loss of PR value.
The application of this feature, undoubtedly, is a default filtering strategy for specific HTML elements (i.e., hyperlinks) in all newly published content.It is not simply stripping all HTML tags, but provides powerful automated management for the most common security and SEO risks.
AnQiCMS' overall considerations in content security
In addition to fine management for external links, AnQiCMS also mentioned the 'project advantages' in the 'project advantages' section.Content Security Management" and "Sensitive word filtering”等功能。Although the document does not directly describe how these functions can be directly filteredHTML structure
The system built-in “Anti-collection interference code”Function focuses more on the protection of content after publication, preventing original content from being maliciously scraped, which is different from the filtering strategy of content input, but serves the goal of content operation together.
Flexible output control: Purification means at the template level
It is worth mentioning that AnQiCMS also provides a powerful template engine, and when outputting content, we can further control the presentation of HTML by using various filters (filters). Although this is not applied to all newly published content,Default input strategyIt provides great flexibility and security for the final presentation of content. For example:
striptagsandremovetagsFilterThese filters can remove all HTML tags or specified HTML tags from the variable content during template rendering.If a content area requires strict plain text display, these filters can be applied in the template.safeandescapeFilter:The system will default to HTML-escaping all template outputs to prevent XSS attacks.safeThe filter allows us to declare certain content as safe, which does not require escaping,escapeThen force the escape. These are allcontent output phasespowerful tools for managing HTML.
By these template filters, even if certain HTML is included when publishing content, we can purify it as needed in different display scenarios, achieving a highly customized content presentation.
Summary and Suggestions
In summary, AnQiCMS indeed provides adefault HTML filtering strategy for external links in newly published content, i.e., configure 'whether to automatically filter external links' in 'Content Settings'.Although it is not a universal filtering rule covering all HTML tags, it solves the most common HTML-related issues in content security and SEO optimization.
For more complex HTML tag filtering requirements, operators may need to standardize at the content editor level or combine with AnQiCMS's powerful template features to use filters for fine control during content output.
Common Questions (FAQ)
- Does AnQiCMS support custom whitelist/blacklist to control allowed HTML tags for publication?The documentation of AnQiCMS does not directly mention providing a global, configurable HTML tag whitelist or blacklist feature to be applied to the HTML filtering of all newly published content.Its main filtering strategy is currently focused on external links and text sensitive words.If you need more detailed HTML tag control, it usually requires cooperation with editor plugins or filtering when outputting templates.
- Does the 'Automatically filter external links' feature also apply to in-site links?“Is the function of automatically filtering external links” usually aimed atexternal linksThe design.The document explicitly mentions "remote image" and "external link", which implies that its main purpose is to manage external resources that are different from the current website domain.For in-site links, it is usually not filtered to ensure the normal operation of internal navigation and content references.
- If I want to automatically remove all HTML tags when publishing content, does AnQiCMS have a direct setting?AnQiCMS does not provide a direct, global setting to automatically remove all HTML tags during the content publishing stage.The editor usually retains the HTML format of the user's input.
striptagsProcess with filters or avoid using formatting tools when using the editor, and input in plain text mode.