Commit bc3738d48d478b506ee066c07cbc0426c34472e8
1 parent
6b9755ee
[+] add init in CoreAttrs, which add value attribute
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
web/making_a_web_site.anubis
| @@ -1560,7 +1560,7 @@ public define HTML_Off_Form input(CoreAttrs attr) | @@ -1560,7 +1560,7 @@ public define HTML_Off_Form input(CoreAttrs attr) | ||
| 1560 | public define CoreAttrs type(String value)= attr("type", value). | 1560 | public define CoreAttrs type(String value)= attr("type", value). |
| 1561 | public define CoreAttrs name(String value)= attr("name", value). | 1561 | public define CoreAttrs name(String value)= attr("name", value). |
| 1562 | public define CoreAttrs value(String value)= attr("value", value). | 1562 | public define CoreAttrs value(String value)= attr("value", value). |
| 1563 | - | 1563 | +public define CoreAttrs init(String value)= attr("value", encode_HTML_entities(value)). |
| 1564 | //-- BEGIN of <input> preset type | 1564 | //-- BEGIN of <input> preset type |
| 1565 | 1565 | ||
| 1566 | /// Radio button | 1566 | /// Radio button |