betty.renderers.html module

Render HTML.

class betty.renderers.html.Html

Bases: Manufacturable, Renderer

The html renderer plugin. The values of the following HTML attributes will automatically be replaced with the URLs generated from them where possible: href, and src

Plugin ID

html

Class

Html

Configuration

not configurable

__init__(*, url_generator: UrlGenerator)
property media_type: MediaType

The media type this renderer can render from.

new = <betty.requirement._RequirableDecorator object>
async render(content: str, /) str

Render content.