Skip to content

Commit 857a16c

Browse files
fix: delete &quot in kg
1 parent 492c89f commit 857a16c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

graphgen/utils/format.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def clean_str(input: Any) -> str:
3030

3131
result = html.unescape(input.strip())
3232
# https://stackoverflow.com/questions/4324790/removing-control-characters-from-a-string-in-python
33-
return re.sub(r"[\x00-\x1f\x7f-\x9f]", "", result)
33+
result = re.sub(r"[\x00-\x1f\x7f-\x9f]", "", result)
34+
result = result.strip('"').strip("'")
35+
return result
3436

3537

3638
async def handle_single_entity_extraction(

0 commit comments

Comments
 (0)