Strip HTML tags and normalize whitespace for safe RIS field output.
(text)
| 10 | |
| 11 | |
| 12 | def 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 | |
| 19 | def parse_medline_fields(nbib_text): |
no outgoing calls
no test coverage detected