Skip to main content

review.page.details

review.page.details(summary, body_html, opened=False)

A <details> element for long material.

Parameters

Name Type Description Default
summary str The visible line, plain text. required
body_html str The content, HTML. required
opened bool Whether it starts open. False

Returns

Name Type Description
str str The HTML.

Examples

from babregen.review.page import details

print(details("The bundle", "<pre>text</pre>"))
<details><summary>The bundle</summary><pre>text</pre></details>