In AnQiCMS, to achieve the excerpt of article content, we need to use the powerful templateFiltersFunction. Especially for the content of articles written for rich text editors, which often contains various HTML tags, such as paragraphs<p>, lists<ul>、Image<img>English.If simply cut by characters, it may lead to the truncation of HTML tags, causing page layout disorder or abnormal display.AnQiCMS fully considers this point, providing an intelligent HTML感知截取过滤器,which ensures that while extracting content, the original HTML structure is not destroyed, making the output content still valid and beautiful.

How to truncate article content and add an ellipsis?

Generally, the detailed content of the article will bearchive.Contentsuch a variable to obtain. This variable contains the full HTML content of the article. To truncate it, we can add it to the end of the variable.|symbol