Cleans a map credit for the engine's attribution control.
Keeps text, inline formatting and links whose URL validateUrl accepts (a kept link opens in a
new tab, rel="noopener noreferrer"); every other element becomes its text, and attributes
other than a link's are dropped. Without a DOM there is no attribution control to fill, and
the credit is "".
Parameters
html: string
The credit as declared — HTML allowed.
Returns string
The cleaned credit, or "" when there is nothing to show.
Cleans a map credit for the engine's attribution control.
Keeps text, inline formatting and links whose URL
validateUrlaccepts (a kept link opens in a new tab,rel="noopener noreferrer"); every other element becomes its text, and attributes other than a link's are dropped. Without a DOM there is no attribution control to fill, and the credit is"".