W3cubDocs

/Dart 2

sqAttribute constant

HtmlEscapeMode const sqAttribute = const HtmlEscapeMode._('attribute', true, false, true, false)

Escaping mode for text going into single-quoted HTML attribute values.

The result should not be used as the content of an unquoted or double-quoted attribute value.

Escapes single quotes (') but not double quotes ("), and escapes < and > characters because they are not allowed in strict XHTML attributes

Implementation

static const HtmlEscapeMode sqAttribute =
    const HtmlEscapeMode._('attribute', true, false, true, false)

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-convert/HtmlEscapeMode/sqAttribute-constant.html