Back to bricks list
Introduction
Technical Documentation
Other Classes
RichText RichTextParagraphText
Version

RichTextParagraphText

Class to manipulate the rich text paragraph text (including variables)

Attributes

text: str

Functions

__INIT__

Initialize self. See help(type(self)) for accurate signature.

Parameters:
NameTypeDefault valueDescription
textstr
GET_ELEMENTS_AFTER_AS_STR
Parameters:
NameTypeDefault valueDescription
target_elementBeautifulSoup
Return type:
str
GET_ELEMENTS_BEFORE_AS_STR
Parameters:
NameTypeDefault valueDescription
target_elementBeautifulSoup
Return type:
str
REPLACE_PARAMETER_WITH_BLOCK

Replace the variable in the rich text content text

Parameters:
NameTypeDefault valueDescription
variable_namestr The name of the variable to replace
Return type:
ReplaceWithBlockResultDTO
REPLACE_PARAMETER_WITH_TEXT

Replace the variable in the rich text content text

Parameters:
NameTypeDefault valueDescription
variable_namestr The name of the variable to replace
valuestr The value to replace the variable
Return type:
str