We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5254315 + 3f335fc commit 2a0be1fCopy full SHA for 2a0be1f
src/Tinker.php
@@ -35,7 +35,7 @@ public function __construct(OutputModifier $outputModifier)
35
public function execute(string $phpCode): string
36
{
37
$phpCode = $this->removeComments($phpCode);
38
-
+
39
$this->shell->addInput($phpCode);
40
41
$closure = new ExecutionLoopClosure($this->shell);
@@ -116,6 +116,6 @@ protected function cleanOutput(string $output): string
116
117
$output = preg_replace('/(?s)(<whisper.*?<\/whisper>)|INFO Ctrl\+D\./ms', '$2', $output);
118
119
- return trim($output);
+ return htmlentities(trim($output));
120
}
121
0 commit comments