From 3b02c21e4c6edb716275b91ed553925bcf01e98c Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Thu, 9 May 2024 01:11:05 +0200 Subject: [PATCH] Html Validation service --- app/Services/HtmlValidator.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/Services/HtmlValidator.php diff --git a/app/Services/HtmlValidator.php b/app/Services/HtmlValidator.php new file mode 100644 index 0000000..019147d --- /dev/null +++ b/app/Services/HtmlValidator.php @@ -0,0 +1,19 @@ + 'text/html; charset=utf-8', + ])->withBody($html, 'text/html')->post('http://nu-validator:8888/?out=json'); + + $json = $response->json(); + + return $json; + } +}