mightstone.services.wiki.models.WikiHtml

pydantic model mightstone.services.wiki.models.WikiHtml

Representation of an HTML tag

For instance: <c></c>

Show JSON schema
{
   "title": "WikiHtml",
   "description": "Representation of an HTML tag\n\nFor instance: <c></c>",
   "type": "object",
   "properties": {
      "tag": {
         "title": "Tag",
         "type": "string"
      },
      "attributes": {
         "additionalProperties": {
            "type": "string"
         },
         "default": {},
         "title": "Attributes",
         "type": "object"
      },
      "content": {
         "$ref": "#/$defs/WikiElement"
      }
   },
   "$defs": {
      "WikiElement": {
         "properties": {},
         "title": "WikiElement",
         "type": "object"
      }
   },
   "required": [
      "tag",
      "content"
   ]
}

Fields:
field attributes: dict[str, str] = {}
field content: WikiElement [Required]
field tag: str [Required]
as_html()
as_text()
as_wiki()
static from_match(toks: ParseResults)
property closing_tag: str
property opening_tag: str