MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / _escape_css_attr

Function _escape_css_attr

src/ifcquery/ifcquery/plot.py:58–60  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

56
57
58def _escape_css_attr(name: str) -> str:
59 # CSS attribute selectors must escape ':' (e.g. ifc:guid -> ifc\:guid)
60 return name.replace(":", "\\:")
61
62
63def _highlight_css_from_ids(model: ifcopenshell.file, element_ids: list[int]) -> str:

Callers 1

_highlight_css_from_idsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected