(text)
| 1060 | _raise_serialization_error(text) |
| 1061 | |
| 1062 | def _escape_attrib_html(text): |
| 1063 | # escape attribute value |
| 1064 | try: |
| 1065 | if "&" in text: |
| 1066 | text = text.replace("&", "&") |
| 1067 | if ">" in text: |
| 1068 | text = text.replace(">", ">") |
| 1069 | if "\"" in text: |
| 1070 | text = text.replace("\"", """) |
| 1071 | return text |
| 1072 | except (TypeError, AttributeError): |
| 1073 | _raise_serialization_error(text) |
| 1074 | |
| 1075 | # -------------------------------------------------------------------- |
| 1076 |
no test coverage detected
searching dependent graphs…