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

.*?<\/p>/; + const regex = /(\n+)+/; // regex grabs heading and paragraph tags for story const corresp = regex.exec(html); - const firstParagraph = corresp ? corresp[0] : ''; //

text1

- const firstParagraphWithoutHtml = corresp ? corresp[1] : ''; // text1 - return corresp[0]; + const story = corresp ? corresp[0] : ''; //

heading

paragraph1

... + return story; }; useEffect(() => { @@ -43,7 +42,6 @@ function StoryScreen() { - {/* */} )}