MCPcopy
hub / github.com/Yuan1z0825/nature-skills / ris_escape

Function ris_escape

skills/nature-academic-search/scripts/converters.py:12–16  ·  view source on GitHub ↗

Strip HTML tags and normalize whitespace for safe RIS field output.

(text)

Source from the content-addressed store, hash-verified

10
11
12def ris_escape(text):
13 """Strip HTML tags and normalize whitespace for safe RIS field output."""
14 text = re.sub(r"<[^>]+>", " ", text or "")
15 text = re.sub(r"\s+", " ", text)
16 return text.strip()
17
18
19def parse_medline_fields(nbib_text):

Callers 6

medline_to_risFunction · 0.70
crossref_to_risFunction · 0.70
arxiv_to_risFunction · 0.70
medline_to_enwFunction · 0.70
crossref_to_enwFunction · 0.70
arxiv_to_enwFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected