Last updated:
0 purchases
escape markup
Escape a string for use in HTML or the inverse
Install #
$ dart pub add escape_markup
copied to clipboard
With Flutter:
$ flutter pub add escape_markup
copied to clipboard
Usage #
import 'package:escape_markup/escape_markup.dart';
void main(List<String> arguments) {
print(escapeMp('👻 & 👻'));
// 👻 & 👻
print(unEscapeMp('👻 & 👻'));
// => 👻 & 👻
print(escapeMp('Hello <em>World</em>'));
// => Hello <em>World</em>
const escapedUrl = 'https://shan-shaji.github.io?x="👻"';
print(unEscapeMp(escapedUrl));
// => https://shan-shaji.github.io?x="👻"
print(unEscapeMp('Hello <em>World</em>'));
// => Hello <em>World</em>
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.