首页 Liquid 语法 函数(Filters) newline_to_br newline_to_br Baklib 发布于:2025-01-02 将所有换行符(\n) 替换为 HTML 的 (<br>) 标签。输入 {% capture string_with_newlines %} Hello there {% endcapture %} {{ string_with_newlines | newline_to_br }} 输出 <br /> Hello<br /> there<br /> 提交反馈 您觉得这篇文章是否有帮助? 😊 有用 😞 无用 Close abs plus