明树Git Lab

Commit 5c789684 authored by zfp1's avatar zfp1

updat

parent 34b5c215
......@@ -52,7 +52,7 @@ app.post('/wechat', async (req, res) => {
function escapeWechatContent(text) {
// 处理换行符[1]()[2]()
let escaped = text.replace(/\n/g, '
');
// let escaped = text.replace(/\n/g, '
');
// 转义XML特殊字符[3]()[5]()
escaped = escaped.replace(/[&<>"']/g, (char) => xmlEntities[char]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment