Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 305 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 305 Bytes

quoted_string

String quoting/unquoting in Dart.

import 'package:quoted_string/quoted_string.dart';

void main() {
  // "Quote (\") and backslash (\\)"
  print(r'Quote (") and backslash (\)'.quote());

  // Quote (") and backslash (\)
  print(r'"Quote (\") and backslash (\\)"'.unquote());
}