HeaderDescription.tsx
11 lines
| 1 | import type {HeaderDescriptionProps} from '@givewp/forms/propTypes'; |
| 2 | import {Interweave} from 'interweave'; |
| 3 | |
| 4 | /** |
| 5 | * @since 3.16.2 Replace <p></p> tag with Interweave to be able to render the content generated through the ClassicEditor component |
| 6 | * @since 3.0.0 |
| 7 | */ |
| 8 | export default function HeaderDescription({text}: HeaderDescriptionProps) { |
| 9 | return <Interweave content={text} />; |
| 10 | } |
| 11 |