class Phlex::HTML

def _build_attributes(attributes, buffer:)

def _build_attributes(attributes, buffer:)
tes.each do |k, v|
nless v
 case k
String then k
Symbol then k.name.tr("_", "-")
k.to_s
ct unsafe attribute names. Attribute names are considered unsafe if they match an event attribute or include unsafe characters.
L::EVENT_ATTRIBUTES[name] || name.match?(/[<>&"']/)
 ArgumentError, "Unsafe attribute name detected: #{k}."

rue
r << " " << name
tring
r << " " << name << '="' << ERB::Util.html_escape(v) << '"'
ymbol
r << " " << name << '="' << ERB::Util.html_escape(v.name) << '"'
ash
d_attributes(v.transform_keys { "#{k}-#{_1.name.tr('_', '-')}" }, buffer: buffer)
r << " " << name << '="' << ERB::Util.html_escape(v.to_s) << '"'