diff --git a/src/Entity/Browser/Container/Tab/Page/Content.php b/src/Entity/Browser/Container/Tab/Page/Content.php index 5e224cd8..62c86d49 100644 --- a/src/Entity/Browser/Container/Tab/Page/Content.php +++ b/src/Entity/Browser/Container/Tab/Page/Content.php @@ -202,7 +202,7 @@ class Content default: - $this->data->setPlain( + $this->data->setMono( $response ); diff --git a/src/Entity/Browser/Container/Tab/Page/Content/Data.php b/src/Entity/Browser/Container/Tab/Page/Content/Data.php index 8341e215..b02cafc3 100644 --- a/src/Entity/Browser/Container/Tab/Page/Content/Data.php +++ b/src/Entity/Browser/Container/Tab/Page/Content/Data.php @@ -84,6 +84,20 @@ class Data ); } + public function setMono( + string $value + ): void + { + $this->gtk->set_markup( + sprintf( + '%s', + htmlspecialchars( + $value + ) + ) + ); + } + public function setGemtext( string $value, string | null &$title = null,