![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|


Public Member Functions | |
| Self | __new__ (cls, str original_value) |
| str | substitute_encoding (self, _Encoding eventual_encoding="utf-8") |
Public Attributes | |
| original_value | |
Static Public Attributes | |
| Pattern | CHARSET_RE = re.compile(r"((^|;)\s*charset=)([^;]*)", re.M) |
Static Public Attributes inherited from bs4.element.AttributeValueWithCharsetSubstitution | |
| str | original_value |
A generic stand-in for the value of a ``<meta>`` tag's ``content`` attribute. When Beautiful Soup parses the markup: ``<meta http-equiv="content-type" content="text/html; charset=utf8">`` The value of the ``content`` attribute will become one of these objects. If the document is later encoded to an encoding other than UTF-8, its ``<meta>`` tag will mention the new encoding instead of ``utf8``.
| str bs4.element.ContentMetaAttributeValue.substitute_encoding | ( | self, | |
| _Encoding | eventual_encoding = "utf-8" |
||
| ) |
When an HTML document is being encoded to a given encoding, the value of the ``charset=`` in a ``<meta>`` tag's ``content`` becomes the name of the encoding.
Reimplemented from bs4.element.AttributeValueWithCharsetSubstitution.