📦 Initialize Geulbeot structure and merge Prompts & test projects
This commit is contained in:
9
02. Prompts/문서생성/codedomain/엔티티_불필요한_Python_v01.py
Normal file
9
02. Prompts/문서생성/codedomain/엔티티_불필요한_Python_v01.py
Normal file
@@ -0,0 +1,9 @@
|
||||
def clean_text(text: str) -> str:
|
||||
"""HTML 엔티티 및 불필요한 태그 제거"""
|
||||
reps = {
|
||||
' ': ' ', '‘': "'", '’': "'", '“': '"', '”': '"',
|
||||
'&': '&', '<': '<', '>': '>', ''': "'", '"': "'", '·': "'"
|
||||
}
|
||||
for key, val in reps.items():
|
||||
text = text.replace(key, val)
|
||||
return re.sub(r'<[^>]+>', '', text).strip()
|
||||
Reference in New Issue
Block a user