Explorer

html.attributes-to-string

description
The attributes of a start tag: a space before each name="value", with the value escaped
type
Fn(attributes: List<@html.attribute>) -> String
expression
fn(attributes$0) =>
  @core.string-join(
    items: @core.list-map(
      T: @html.attribute,
      U: String,
      f: fn(item$1) =>
        @core.string-join(items: [" ", $1.name, "=\"", @html.escape-attribute(text: $1.value), "\""], separator: ""),
      xs: $0
    ),
    separator: ""
  )
visibility
public
html.attributes-to-string (project html, branch main, snapshot hd1kHQmQUtgayk-Y5Eo_pcQPlqiL8dHKKndnKtdm-KI)
id: VGhAZgX94KlXP-K6vF2PipKiIyhaCyraG5zP5n9fmro
content hash: bwhq3r23MFUQgl3vj3hjCDkSTfwEcTUXzpG4zn_vxY0