Giter Site home page Giter Site logo

nathanpitman / encode_decode.pi.ee_addon Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 3.0 14 KB

This ExpressionEngine plug-in is designed to help you encode and decode a string of text. Typical use would be to encode a string so it can be safely passed from one page to another in the URL. Includes support for json, base64, htmlspecialchars, htmlentities, uuencode and rawurlencode.

PHP 100.00%
expressionengine eecms plugin

encode_decode.pi.ee_addon's Introduction

'Encode/Decode' for ExpressionEngine

This plug-in is designed to help you encode and decode a string of text. Typical use would be to encode a string so it can be safely passed from one page to another in the URL. Includes support for json, base64, htmlspecialchars, htmlentities, uuencode and rawurlencode.

BASIC USAGE:

{exp:encode_decode style="url" direction="encode"}This is @/ test string{/exp:encode_decode}

PARAMETERS:

string = '[email protected]' (optional)

  • If you'd rather not use the plug-in as a tag pair, use a single tag and specify the string parameter.

style = 'url' (default - url)

  • The encoding style. this can be either: "url","rawurl","htmlspecialchars","htmlentities","uu", "base64" or "url_safe_base64".

direction = 'encode' (default - encode)

  • The direction to push the string in: "encode" or "decode".

encode_decode.pi.ee_addon's People

Contributors

andrewdisley avatar nathanpitman avatar proimage avatar zizther avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

encode_decode.pi.ee_addon's Issues

EE2 Version?

Hey Nathan, I've got an EE1 site using Encode/Decode that will be upgrading to EE2 soon. Do you happen to have an EE2-compatible version in the works?

url_safe_base64 replacement_chars arrays

Think you've got them the wrong way around.

Try this (equivalent to what happens when the plugin encodes):

$replacement_chars = array(
 '.' => '+',
 '-' => '=',
 '~' => '/'
);
echo strtr("split/string",$replacement_chars);

The / is still there in the output.

Think you you need the other set from the decode function in encode and v.v.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.