Fixed Error for HTML Output (#714)

* Update file_html.go

Fixed Error for HTML Output

[ERR] template: output.html:74:94: executing "output.html" at <$result.HTMLColor>: can't evaluate field HTMLColor in type output.htmlResult

* Update CONTRIBUTORS.md

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Joona Hoikkala <5235109+joohoi@users.noreply.github.com>
This commit is contained in:
haseobang 2023-09-13 04:34:43 -04:00 committed by GitHub
parent 96fef6213d
commit 6f29907b4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@
* [eur0pa](https://github.com/eur0pa)
* [fabiobauer](https://github.com/fabiobauer)
* [fang0654](https://github.com/fang0654)
* [haseobang](https://github.com/haseobang)
* [Hazegard](https://github.com/Hazegard)
* [helpermika](https://github.com/helpermika)
* [h1x](https://github.com/h1x-lnx)

View file

@ -108,7 +108,7 @@ const (
<div style="display:none">
|result_raw|{{ $result.StatusCode }}{{ range $keyword, $value := $result.Input }}|{{ $value | printf "%s" }}{{ end }}|{{ $result.Url }}|{{ $result.RedirectLocation }}|{{ $result.Position }}|{{ $result.ContentLength }}|{{ $result.ContentWords }}|{{ $result.ContentLines }}|{{ $result.ContentType }}|{{ $result.Duration }}|{{ $result.ResultFile }}|{{ $result.ScraperData }}|{{ $result.FfufHash }}|
</div>
<tr class="result-{{ $result.StatusCode }}" style="background-color: {{$result.HTMLColor}};">
<tr class="result-{{ $result.StatusCode }}" style="background-color: {{ $result.HTMLColor }};">
<td><font color="black" class="status-code">{{ $result.StatusCode }}</font></td>
{{ range $keyword, $value := $result.Input }}
<td>{{ $value | printf "%s" }}</td>