Skip to content

Commit

Permalink
Fix renderVariable not escaping HTML in variable ID
Browse files Browse the repository at this point in the history
  • Loading branch information
HaniAmmar committed Jun 30, 2024
1 parent f10d469 commit bc097ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/Template.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ struct TemplateSub {
if ((loop_key_ != nullptr) && (tag.Level != SizeT8{0})) {
escapeHTMLSpecialChars(*stream_, loop_key_, loop_key_length_);
} else {
stream_->Write((content_ + t_offset), length);
escapeHTMLSpecialChars(*stream_, (content_ + t_offset), length);
}
}
}
Expand Down

0 comments on commit bc097ff

Please sign in to comment.