Skip to content

Commit 51ba7b1

Browse files
committed
removing encoded versions of files
1 parent 94d7b43 commit 51ba7b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/PatternLab/Builder.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,8 @@ protected function generatePatterns($options = array()) {
243243

244244
// modify the pattern mark-up
245245
$markup = $patternStoreData["code"];
246-
$markupEncoded = htmlentities($markup,ENT_COMPAT,"UTF-8");
247246
$markupFull = $patternStoreData["header"].$markup.$patternStoreData["footer"];
248-
$markupEngine = htmlentities(file_get_contents($patternSourceDir."/".$pathName.".".$patternExtension),ENT_COMPAT,"UTF-8");
247+
$markupEngine = file_get_contents($patternSourceDir."/".$pathName.".".$patternExtension);
249248

250249
// if the pattern directory doesn't exist create it
251250
if (!is_dir($patternPublicDir."/".$path)) {
@@ -255,7 +254,7 @@ protected function generatePatterns($options = array()) {
255254
// write out the various pattern files
256255
file_put_contents($patternPublicDir."/".$path."/".$path.".html",$markupFull);
257256
if (!$exportFiles) {
258-
file_put_contents($patternPublicDir."/".$path."/".$path.".escaped.html",$markupEncoded);
257+
file_put_contents($patternPublicDir."/".$path."/".$path.".markup-only.html",$markup);
259258
file_put_contents($patternPublicDir."/".$path."/".$path.".".$patternExtension,$markupEngine);
260259
}
261260
/*

0 commit comments

Comments
 (0)