class_docstr: HTML formatted text.
  Take something HTML-like, for use as a formatted string.
  
  ::
  
      # Turn something into red.
      HTML('<style fg="ansired" bg="#00ff44">...</style>')
  
      # Italic, bold, underline and strike.
      HTML('<i>...</i>')
      HTML('<b>...</b>')
      HTML('<u>...</u>')
      HTML('<s>...</s>')
  
  All HTML elements become available as a "class" in the style sheet.
  E.g. ``<username>...</username>`` can be styled, by setting a style for
  ``username``.
class_docstr_tok: ["HTML","formatted","text",".","Take","something","HTML-like",",","for","use","as","a","formatted","string",".",":",":","#","Turn","something","into","red",".","HTML","(","'","<","style","fg=","''","ansired","''","bg=","''","#","00ff44","''",">","...","<","\/style",">","'",")","#","Italic",",","bold",",","underline","and","strike",".","HTML","(","'","<","i",">","...","<","\/i",">","'",")","HTML","(","'","<","b",">","...","<","\/b",">","'",")","HTML","(","'","<","u",">","...","<","\/u",">","'",")","HTML","(","'","<","s",">","...","<","\/s",">","'",")","All","HTML","elements","become","available","as","a","``","class","''","in","the","style","sheet",".","E.g",".","``","<","username",">","...","<","\/username",">","``","can","be","styled",",","by","setting","a","style","for","``","username","``","."]
code: def __pt_formatted_text__(self) -> StyleAndTextTuples:
      return self.formatted_text
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/formatted_text/html.py
imports: from __future__ import annotations
  import xml.dom.minidom
  from string import Formatter
  from typing import Any
  from .base import FormattedText, StyleAndTextTuples
label_desc: Use image node_id 3 for calling the HTML obj's underlying member method code with example usage: obj.__pt_formatted_text__() and returns: self