@plentymarkets/shop-api / legalGetters
Variable: legalGetters ​
constlegalGetters:object
Defined in: getters/legalGetters.ts:9
Type Declaration ​
getHtml ​
getHtml: (
type) =>string
Returns the HTML content of a legal text type, falling back to the plain text if no HTML is available.
Parameters ​
type ​
An object containing htmlText and plainText properties.
htmlText ​
string
plainText ​
string
Returns ​
string
The HTML string if non-empty, otherwise the plain text string, or an empty string if neither is set.