mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
Merge pull request #79 from oceanprotocol/fix/search-pagetitle
strip HTML from meta page title
This commit is contained in:
commit
7eeb4e3342
@ -21,7 +21,8 @@ const Route = ({
|
||||
}) => (
|
||||
<div className={className}>
|
||||
<Helmet defaultTitle={meta.title} titleTemplate={`%s - ${meta.title}`}>
|
||||
<title>{title}</title>
|
||||
{/* Strip HTML from passed title */}
|
||||
<title>{title.replace(/(<([^>]+)>)/gi, '')}</title>
|
||||
{description && <meta name="description" content={description} />}
|
||||
</Helmet>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user