import_codes_to_list

This commit is contained in:
hsafaei
2025-05-26 17:00:14 +03:30
parent 660c59df70
commit 8d0b44bd25
6 changed files with 101 additions and 26 deletions
+6
View File
@@ -45,6 +45,12 @@ def isNeedHtml(html):
return True
else:
return False
# erab
def remove_arabic_diacritics(text):
# Regular expression to match all Arabic diacritics
diacritics_pattern = r'[\u064B-\u0652\u0670]'
return re.sub(diacritics_pattern, '', text)
def removeHtmlTags(html, exeptionTag=[]):