escape_markup

Last updated:

0 purchases

escape_markup Image
escape_markup Images
Add to Cart

Description:

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('👻 & 👻'));
// 👻 &amp; 👻

print(unEscapeMp('👻 &amp; 👻'));
// => 👻 & 👻

print(escapeMp('Hello <em>World</em>'));
// => Hello &lt;em&gt;World&lt;/em&gt;

const escapedUrl = 'https://shan-shaji.github.io?x=&quot;👻&quot;';

print(unEscapeMp(escapedUrl));
// => https://shan-shaji.github.io?x="👻"

print(unEscapeMp('Hello &lt;em&gt;World&lt;/em&gt;'));
// => Hello <em>World</em>
}

copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.