Skip to content

Commit 32537eb

Browse files
committed
htmlspecialchars_decode 3v4l responses
1 parent bf56dfb commit 32537eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Chat/Plugin/EvalCode.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function pollUntilDone(string $snippetId, int $messageId): \Generator {
106106
$messageId,
107107
$this->getMessage(
108108
$parsedResult["output"][0][0]["versions"],
109-
$parsedResult["output"][0][0]["output"],
109+
htmlspecialchars_decode($parsedResult["output"][0][0]["output"]),
110110
$snippetId
111111
)
112112
);
@@ -120,7 +120,7 @@ private function pollUntilDone(string $snippetId, int $messageId): \Generator {
120120
yield from $this->chatClient->postMessage(
121121
$this->getMessage(
122122
$parsedResult["output"][0][$i]["versions"],
123-
$parsedResult["output"][0][$i]["output"],
123+
htmlspecialchars_decode($parsedResult["output"][0][$i]["output"]),
124124
$snippetId
125125
)
126126
);

0 commit comments

Comments
 (0)