Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

escapeEntities for title

Steven Tey044c01374d5b
diff --git a/pages/api/edge/metatags.ts b/pages/api/edge/metatags.ts
index 0c89a79df5..1efbb9110c 100644
--- a/pages/api/edge/metatags.ts
+++ b/pages/api/edge/metatags.ts
@@ -54,7 +54,7 @@ export const getMetaTags = async (url: string, ev: NextFetchEvent) => {
const content = attributes.content || attributes.href;
if (name === "title") {
- obj["title"] = node.children[0].value;
+ obj["title"] = escapeEntities(node.children[0].value);
// if content is not string, skip
} else if (typeof content !== "string") {
return;