diff --git a/src/app/(tabs)/search/story.tsx b/src/app/(tabs)/search/story.tsx index 94b533a3..1c468a81 100644 --- a/src/app/(tabs)/search/story.tsx +++ b/src/app/(tabs)/search/story.tsx @@ -24,11 +24,11 @@ function StoryScreen() { }; const htmlParser = (html: string) => { - const regex = /

(.*?)<\/p>/; + const regex = /(\n+)+/; //

.*?<\/p>/; const corresp = regex.exec(html); const firstParagraph = corresp ? corresp[0] : ''; //

text1

const firstParagraphWithoutHtml = corresp ? corresp[1] : ''; // text1 - return firstParagraph; + return corresp[0]; }; useEffect(() => { @@ -43,6 +43,7 @@ function StoryScreen() { + {/* */} )}