Skip to content

Commit

Permalink
fix(cshtml): trailing solidus not allowed on anchor tag
Browse files Browse the repository at this point in the history
Co-authored-by: Lukáš Zaoral <[email protected]>
  • Loading branch information
jamacku and lzaoral committed May 14, 2024
1 parent 44952ad commit b4067c4
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 107 deletions.
2 changes: 1 addition & 1 deletion src/lib/writer-html.cc
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ void HtmlWriter::handleDef(const Defect &def)
d->core.writeHeaderOnce(d->scanProps, d->plainTextUrl);

// HTML anchor
d->str << "<a name='def" << ++(d->defCnt) << "'/>";
d->str << "<a id='def" << ++(d->defCnt) << "'></a>";

d->str << "<b>Error: <span style='background: #C0FF00;'>"
<< HtmlLib::escapeTextInline(def.checker) << "</span>";
Expand Down
Loading

0 comments on commit b4067c4

Please sign in to comment.