Class to manipulate the rich text paragraph text (including variables)
Attributes
text: str
Functions
__init__
Initialize self. See help(type(self)) for accurate signature.
text :
str
get_elements_after_as_str
target_element :
BeautifulSoup
Return type :
str
get_elements_before_as_str
target_element :
BeautifulSoup
Return type :
str
replace_parameter_with_block
Replace the variable in the rich text content text
variable_name :
str
the name of the variable to replace
Return type :
ReplaceWithBlockResultDTO
replace_parameter_with_text
Replace the variable in the rich text content text
parameter_name :
str
value :
str
the value to replace the variable
replace_block :
bool
- False
if True, the variable block will be remove and only the value will be displayed
Return type :
str