소스 검색

&这个字符转成 &

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