MCPcopy Index your code
hub / github.com/pyscript/pyscript / test_display_should_escape

Function test_display_should_escape

core/tests/python/tests/test_display.py:225–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223
224
225async def test_display_should_escape():
226 display("<p>hello world</p>")
227 container = await get_display_container()
228 assert container[0].innerHTML == "&lt;p&gt;hello world&lt;/p&gt;"
229 assert container.innerText == "<p>hello world</p>"
230
231
232async def test_display_HTML():

Callers

nothing calls this directly

Calls 2

displayFunction · 0.90
get_display_containerFunction · 0.85

Tested by

no test coverage detected