From 32537ebeff5fb6564a41a063b62cffa97d1ea7a0 Mon Sep 17 00:00:00 2001 From: Pieter Hordijk Date: Fri, 5 Feb 2016 22:28:48 +0100 Subject: [PATCH] htmlspecialchars_decode 3v4l responses --- src/Chat/Plugin/EvalCode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Chat/Plugin/EvalCode.php b/src/Chat/Plugin/EvalCode.php index 6fc169b..9c7dedb 100644 --- a/src/Chat/Plugin/EvalCode.php +++ b/src/Chat/Plugin/EvalCode.php @@ -106,7 +106,7 @@ private function pollUntilDone(string $snippetId, int $messageId): \Generator { $messageId, $this->getMessage( $parsedResult["output"][0][0]["versions"], - $parsedResult["output"][0][0]["output"], + htmlspecialchars_decode($parsedResult["output"][0][0]["output"]), $snippetId ) ); @@ -120,7 +120,7 @@ private function pollUntilDone(string $snippetId, int $messageId): \Generator { yield from $this->chatClient->postMessage( $this->getMessage( $parsedResult["output"][0][$i]["versions"], - $parsedResult["output"][0][$i]["output"], + htmlspecialchars_decode($parsedResult["output"][0][$i]["output"]), $snippetId ) );