Git Product home page Git Product logo

custom.rg.emailobfuscaterule's Introduction

About:

E-mail obfuscation RULE/tag for DTI's Content Publisher system. [CSP (Caché Server Page) / COS (Caché Objectscript)]

Examples:

Example 01: Container tag

<rg:email:obfuscate email="[email protected]" simple="" mode="" cc="[email protected]" bcc="[email protected]" subject="My Subject" body="My body" id="myId" class="myClass" rel="myRel" title="Title goes here" text="" var="foo">#(foo)#</rg:email:obfuscate>

Example 02: Self-closing tag

<rg:email:obfuscate email="[email protected]" simple="" mode="" cc="[email protected]" bcc="[email protected]" subject="My Subject" body="My body" id="myId" class="myClass" rel="myRel" title="Title goes here" text="Click here to e-mail Bob" />

Example 03: Return just the obfuscated e-mail address

<rg:email:obfuscate email="[email protected]" simple="true" />

Example 04: Return the obfuscated e-mail address and build the link manually

<rg:email:obfuscate email="[email protected]" simple="true" var="foo"><a #("href=""&amp;#x6D;&amp;#97;&amp;#x69;&amp;#x6C;&amp;#x74;&amp;#x6F;&amp;#x3A;" _ foo _ """")#>#(foo)#</a></rg:email:obfuscate>

Non-DTI customers:

If you don't use DTI software, but you still want to use this code, then all you have to do is remove these lines of code:

<csr:class super="dt.common.page.Rule" />

<script language="cache" runat="compiler">
	do ..RenderDTStartTag()
</script>

<script language="cache" runat="compiler">
	do ..RenderDTEndTag()
</script>

Rule parameters:

  • "email" Required. E-mail address to obfuscate.
  • "simple" Set to 'true' if you want to return just the obfuscated e-mail address. Default is 'false'.
  • "mode" Obfuscation mode. 1 = decimal, 2 = hexidecimal, 3 = mixture of modes 1 and 2. Default is mode 3.
  • "cc" CC?
  • "bcc" BCC?
  • "subject" Subject?
  • "body" Body?
  • "id" Link 'id' attribute?
  • "class" Link 'class' attribute?
  • "rel" Link 'rel' attribute?
  • "title" Link 'title' attribute? Note: This value is not obfuscated.
  • "text" Link text. Default is the e-mail address.
  • "var" Advanced: Local variable name to use when using this RULE as a container tag (vs. self-closing tag). Variable name MUST BE UNIQUE!

Changelog:

  • 2011/04/04
    • Deleted old repository on Github.
    • Created new repository on Github that reflects naming/storage changes to DTI system.
    • Added DTI required tags/code to RULE. See "Non-DTI customers" section above.
    • Minor syntax tweaks.
  • 2010/03/07
    • Initial public release.

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.