Skip to content

Commit 21ad30e

Browse files
author
Anuj Nair
committed
Making sure that apostrophes are preserved
1 parent 5f8fd8d commit 21ad30e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Describe the goal of this PR. Mention any related Issue numbers.
77
* [ ] I've read and understood the [Contributing Guidelines](https://github.com/slackhq/csp-html-webpack-plugin/blob/master/.github/contributing.md) and have done my best effort to follow them.
88
* [ ] I've read and agree to the [Code of Conduct](https://slackhq.github.io/code-of-conduct).
99
* [ ] I've written tests to cover the new code and functionality included in this PR.
10-
* [ ] I've read, agree to, and signed the [Contributor License Agreement (CLA)](https://cla-assistant.io/{project_slug}).
10+
* [ ] I've read, agree to, and signed the [Contributor License Agreement (CLA)](https://cla-assistant.io/slackhq/csp-html-webpack-plugin).

plugin.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ class CspHtmlWebpackPlugin {
7777
compilation.plugin(
7878
'html-webpack-plugin-after-html-processing',
7979
(htmlPluginData, compileCb) => {
80-
const $ = cheerio.load(htmlPluginData.html);
80+
const $ = cheerio.load(htmlPluginData.html, {
81+
decodeEntities: false
82+
});
8183

8284
// if not enabled, remove the empty tag
8385
if (!this.opts.enabled) {

0 commit comments

Comments
 (0)