我在单元格中有一个带有某些格式的csv,我想保留换行符。当我使用jsonify过滤器时,我可以得到添加了换行符的输出。例如:This is some text \n and this is a new line。我有一个替换过滤器,用标签替换了换行符,但是它只是清除了字符,没有添加换行符:replace: "\n", "<br>"。我尝试用js replace替换“ \ n”,但随后html未被处理。
This is some text \n and this is a new line
replace: "\n", "<br>"
liquid jekyll
jekyll ×1
liquid ×1