Skip to content

Commit

Permalink
Merge pull request #551 from skipperbent/v3-development
Browse files Browse the repository at this point in the history
Version 3.19.2
  • Loading branch information
skipperbent committed May 17, 2024
2 parents 34f3270 + 08b4d49 commit 14d8f40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UI/Taglib/TaglibJs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Pecee\UI\Taglib;

use Pecee\Str;
use Pecee\UI\Phtml\Phtml;

class TaglibJs extends Taglib
Expand Down Expand Up @@ -539,7 +540,7 @@ protected function tagInclude(\stdClass $attrs): string

$content = file_get_contents('views/snippets/' . $attrs->file, FILE_USE_INCLUDE_PATH);
if ($content !== false) {
return (new Phtml())->read($content)->toPHP();
return Str::sanitizeHtml((new Phtml())->read($content)->toPHP());
}

return '';
Expand Down

0 comments on commit 14d8f40

Please sign in to comment.