decode_html Function

Defined in pyglet.text

decode_html(text, location=None)

Create a document directly from some HTML formatted text.

Parameters:
  • text (str) – HTML data to decode.
  • location (str) – Location giving the base path for additional resources referenced from the document (e.g., images).
Return type:

FormattedDocument

Previous topic

decode_attributed Function

Next topic

decode_text Function