From aedd2862a6cd3fe57fe3129227254a4924fb2444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Tue, 15 Apr 2025 13:23:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=20escape=20=E5=92=8C?= =?UTF-8?q?=20unescape=20=E5=9C=A8=E8=A7=A3=E6=9E=90=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E6=BD=9C=E5=9C=A8=E9=97=AE=E9=A2=98=20(#2628)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 修复 escape 未转义 unicode 中 & 字符的问题 * chore: update * fix: 优化 unescape 替换顺序,确保为 escape 替换的反向顺序 * chore: update --- docs/laytpl/detail/demo.md | 25 +++++++++++++------------ src/modules/util.js | 17 ++++++++--------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/laytpl/detail/demo.md b/docs/laytpl/detail/demo.md index bb77a7a0..7f1434c9 100644 --- a/docs/laytpl/detail/demo.md +++ b/docs/laytpl/detail/demo.md @@ -20,19 +20,20 @@ {{= item.site || '' }} {{# }); }} - + {{# if(d.list.length === 0){ }} 无数据 -{{# } }} +{{# } }} </textarea> - +