blob: 5c83a2b2b4271e3678a780756ad1eb4727256488 [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// @assertion bool escapeApos
/// read-only
/// Whether to escape "'" (apostrophe).
/// @description Checks that this property shows if apostrophe is escaped
/// Test default constructor values
/// @author sgrekhov@unipro.ru
import "dart:convert";
import "../../../Utils/expect.dart";
main() {
HtmlEscapeMode htmlEscapeMode = new HtmlEscapeMode();
Expect.isFalse(htmlEscapeMode.escapeApos);
htmlEscapeMode = new HtmlEscapeMode(escapeApos: true);
Expect.isTrue(htmlEscapeMode.escapeApos);
}