将所有换行符(n) 替换为 HTML 的 (<br>) 标签。
n
<br>
输入
{% capture string_with_newlines %} Hello there {% endcapture %} {{ string_with_newlines | newline_to_br }}
输出
<br /> Hello<br /> there<br />
© Copyright 2023 蓝晒科技. 粤ICP备2023054553号-1