pappes_web_utility 0.0.1 copy "pappes_web_utility: ^0.0.1" to clipboard
pappes_web_utility: ^0.0.1 copied to clipboard

outdatedDart 1 only

A library useful for web applications. Currently includes MyHtml which is a class with HTML helper functions and MyJS which is a class with JavaScript helper functions

example/pappes_web_utility_example.dart

// Copyright (c) 2014, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

library pappes_web_utility.example;

import 'package:pappes_web_utility/pappes_web_utility.dart';

main() {
  print(base64Encode('Hello World'));
  print(base64Decode('SGVsbG8gV29ybGQ='));
  
  print(MyHtml.setUriSchemeToHttp('www.abc.com')); //prints 'http://www.abc.com'
  
  print(MyHtml.setUriParameters('http://www.abc.com?x=HelloWorld&a=b', searchFor: 'HelloWorld', replacementParameters: 'abc=123'));//prints 'http://www.abc.com?abc=123'
  
  print(MyHtml.removeUrlRedirect('http://www.abc.com/redirect?u=www.realurl.com'));//prints 'http://www.realurl.com')
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A library useful for web applications. Currently includes MyHtml which is a class with HTML helper functions and MyJS which is a class with JavaScript helper functions

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

pappes_utility

More

Packages that depend on pappes_web_utility