From ba186b832ab1f2ab35f56b5741c5555899540afc Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 8 Apr 2019 16:21:56 +0200 Subject: [PATCH] strip HTML from meta page title --- client/src/components/templates/Route.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/templates/Route.tsx b/client/src/components/templates/Route.tsx index 209d5f4..9aea2cf 100644 --- a/client/src/components/templates/Route.tsx +++ b/client/src/components/templates/Route.tsx @@ -21,7 +21,8 @@ const Route = ({ }) => (
- {title} + {/* Strip HTML from passed title */} + {title.replace(/(<([^>]+)>)/gi, '')} {description && }