DDG::Meta::Helper - Helper functions for easy access to important functions
version 1016
In your goodie, for example:
return "text from random source: ".$text."!", html => "<div>text from random source: ".html_enc($text)."!</div>";
Or use JSON-like booleans:
{ option1 => true, option2 => false }
This meta class installs some helper functions.
encodes entities to safely post random data on HTML output.
Encodes entities to safely use it in URLs for links in the Goodie, for example.
Warning: Do not forget that the return value from a spice will automatically get url encoded for the path. It is not required to url encode values there, this will just lead to double encoding!
Use booleans true and false to set options.
DuckDuckGo <open@duckduckgo.com>
This software is Copyright (c) 2013 by DuckDuckGo, Inc. https://duckduckgo.com/.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install DDG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DDG
CPAN shell
perl -MCPAN -e shell install DDG
For more information on module installation, please visit the detailed CPAN module installation guide.