Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
bs4.element.AttributeValueWithCharsetSubstitution Class Reference
Inheritance diagram for bs4.element.AttributeValueWithCharsetSubstitution:
Inheritance graph
[legend]
Collaboration diagram for bs4.element.AttributeValueWithCharsetSubstitution:
Collaboration graph
[legend]

Public Member Functions

str substitute_encoding (self, str eventual_encoding)
 

Static Public Attributes

str original_value
 

Detailed Description

An abstract class standing in for a character encoding specified
inside an HTML ``<meta>`` tag.

Subclasses exist for each place such a character encoding might be
found: either inside the ``charset`` attribute
(`CharsetMetaAttributeValue`) or inside the ``content`` attribute
(`ContentMetaAttributeValue`)

This allows Beautiful Soup to replace that part of the HTML file
with a different encoding when ouputting a tree as a string.

Member Function Documentation

◆ substitute_encoding()

str bs4.element.AttributeValueWithCharsetSubstitution.substitute_encoding (   self,
str  eventual_encoding 
)
Do whatever's necessary in this implementation-specific
portion an HTML document to substitute in a specific encoding.

Reimplemented in bs4.element.CharsetMetaAttributeValue, and bs4.element.ContentMetaAttributeValue.


The documentation for this class was generated from the following file: