We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943bc3c commit ec7d815Copy full SHA for ec7d815
1 file changed
packages/component-better-link/src/stripParagraphContainer.ts
@@ -1,3 +1,3 @@
1
export default function stripParagraphContainer(html: string): string {
2
- return html.replace(/^<p\sxmlns="http:\/\/www.w3.org\/1999\/xhtml">/u, '').replace(/<\/p>$/u, '');
+ return html.trim().replace(/^<p\sxmlns="http:\/\/www.w3.org\/1999\/xhtml">/u, '').replace(/<\/p>$/u, '');
3
}
0 commit comments