mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Use sprintf for texts with links
This commit is contained in:
parent
b23a9a0fab
commit
f6e214650e
3 changed files with 31 additions and 14 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue