diff --git a/src/app/(tabs)/search/story.tsx b/src/app/(tabs)/search/story.tsx index c75e2394..b0b63473 100644 --- a/src/app/(tabs)/search/story.tsx +++ b/src/app/(tabs)/search/story.tsx @@ -30,6 +30,13 @@ function StoryScreen() { } }; + const htmlParser = (html: string) => { + const regex = /
)+/; // regex grabs heading and paragraph tags for story + const corresp = regex.exec(html); + const story = corresp ? corresp[0] : ''; //
paragraph1
... + return story; + }; + useEffect(() => { getStory('170947'); }, []);