Function htmlescape::encode_attribute_w
source · [−]pub fn encode_attribute_w<W: Write>(s: &str, writer: &mut W) -> Result<()>
Expand description
HTML entity-encodes a string, for use in attributes values, to a writer.
Similar to encode_attribute
, except that the output is written to a writer rather
than returned as a String
.
Arguments
s
- The string to encode.writer
- Output is written to here.