Use sprintf for texts with links

This commit is contained in:
inpsyde-maticluznar 2024-11-14 08:29:03 +01:00
parent b23a9a0fab
commit f6e214650e
No known key found for this signature in database
GPG key ID: D005973F231309F6
3 changed files with 31 additions and 14 deletions

View file

@ -51,9 +51,12 @@ export const PayPalRdbWithContent = ( props ) => {
<div className="ppcp-r__radio-content">
<label htmlFor={ props?.id }>{ props.label }</label>
{ props.description && (
<p className="ppcp-r__radio-description">
{ props.description }
</p>
<p
className="ppcp-r__radio-description"
dangerouslySetInnerHTML={ {
__html: props.description,
} }
/>
) }
</div>
</div>