hidden_tag: temporarily prevent htmlspecialchars() to stop embedded JSON from breaking

This commit is contained in:
Andrew Dolgov 2021-02-16 15:27:22 +03:00
parent 1f5d81b77c
commit 4f4e57bb26
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@
function hidden_tag(string $name, string $value) { function hidden_tag(string $name, string $value) {
return "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" return "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\"
name=\"".htmlspecialchars($name)."\" value=\"".htmlspecialchars($value)."\">"; name=\"".htmlspecialchars($name)."\" value=\"$value\">";
} }
function checkbox_tag(string $name, bool $checked = false, string $value = "", string $attributes = "", string $id = "") { function checkbox_tag(string $name, bool $checked = false, string $value = "", string $attributes = "", string $id = "") {