瀏覽代碼

&这个字符转成 &

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

+ 1 - 4
controller/LangArea.py

@@ -179,10 +179,7 @@ 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('&', '&')
+                lk = lk.replace('&', '&')
                 # 正则表达式
                 # re.sub("[a-z]+", "$", "123abc78ab9cdeg00t8")
                 content_val = res[l].replace("'", "\\'")