From 79a5c2b99178adfea6e3f9db199374171e79f2a8 Mon Sep 17 00:00:00 2001 From: Marcos Hernandez Date: Tue, 10 Oct 2023 20:34:44 -0700 Subject: [PATCH] removed function and placed html-parser function in global --- src/app/(tabs)/search/story.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/app/(tabs)/search/story.tsx b/src/app/(tabs)/search/story.tsx index b0b63473..c75e2394 100644 --- a/src/app/(tabs)/search/story.tsx +++ b/src/app/(tabs)/search/story.tsx @@ -30,13 +30,6 @@ function StoryScreen() { } }; - const htmlParser = (html: string) => { - const regex = /(\n+)+/; // regex grabs heading and paragraph tags for story - const corresp = regex.exec(html); - const story = corresp ? corresp[0] : ''; //

heading

paragraph1

... - return story; - }; - useEffect(() => { getStory('170947'); }, []);