소스 검색

&这个字符转成 &

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("'", "\\'")