瀏覽代碼

&这个字符转成 &

lhq 4 年之前
父節點
當前提交
f34fd1a5d5
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      controller/LangArea.py

+ 4 - 0
controller/LangArea.py

@@ -179,6 +179,10 @@ class LangAreaView(TemplateView):
                 lk = lk.replace('%', '_')
                 lk = lk.replace(';', '_')
                 lk = lk.replace('‘', '_')
+            if type == 'android' or type == 'link_android':
+                for l in res:
+                    lk = l
+                    lk = lk.replace('&', '&')
                 # 正则表达式
                 # re.sub("[a-z]+", "$", "123abc78ab9cdeg00t8")
                 content_val = res[l].replace("'", "\\'")