MCPcopy
hub / github.com/mitmproxy/mitmproxy / is_inline_text

Function is_inline_text

mitmproxy/contentviews/_view_xml_html.py:143–147  ·  view source on GitHub ↗
(a: Token | None, b: Token | None, c: Token | None)

Source from the content-addressed store, hash-verified

141
142
143def is_inline_text(a: Token | None, b: Token | None, c: Token | None) -> bool:
144 if isinstance(a, Tag) and isinstance(b, Text) and isinstance(c, Tag):
145 if a.is_opening and "\n" not in b.data and c.is_closing and a.tag == c.tag:
146 return True
147 return False
148
149
150def is_inline(

Callers 1

is_inlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…