Skip to content

Commit

Permalink
fix(meta): added disable decoding entities option to cheerio
Browse files Browse the repository at this point in the history
Disabled decoding entities on cheerio as it automatically encodes url prefixes

fix #60
  • Loading branch information
onderceylan committed Oct 30, 2019
1 parent 479350c commit 1e984eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ const addMetaTagsToIndexPage = async (
}

const indexHtmlFile = await file.readFile(indexHtmlFilePath);
const $ = cheerio.load(indexHtmlFile);
const $ = cheerio.load(indexHtmlFile, { decodeEntities: false });

const HEAD_SELECTOR = 'head';
const hasElement = (selector: string): boolean => {
Expand Down

0 comments on commit 1e984eb

Please sign in to comment.