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 e8b4024 commit 3a24ebdCopy full SHA for 3a24ebd
1 file changed
packages/component-better-link/src/stripParagraphContainer.ts
@@ -1,3 +1,6 @@
1
export default function stripParagraphContainer(html: string): string {
2
- return html.trim().replace(/^<p\sxmlns="http:\/\/www.w3.org\/1999\/xhtml">/u, '').replace(/<\/p>$/u, '');
+ return html
3
+ .trim()
4
+ .replace(/^<p\sxmlns="http:\/\/www.w3.org\/1999\/xhtml">/u, '')
5
+ .replace(/<\/p>$/u, '');
6
}
0 commit comments