Skip to content

Instantly share code, notes, and snippets.

@allen allen/enkoder.xsl
Created Jan 16, 2012

Embed
What would you like to do?
XSLT Utility: Enkoder
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="enkoder">
<script type="text/javascript">
<xsl:text disable-output-escaping="yes">&#x0A;//&lt;![CDATA[&#x0A;</xsl:text>
<xsl:comment>
<xsl:text>&#x0A;<![CDATA[var x="function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +]]></xsl:text>
<xsl:text>&#x0A;<![CDATA["=48){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i=i-1){o+=x.charAt(i);}return o" +]]></xsl:text>
<xsl:text>&#x0A;<![CDATA[".substr(0,ol);}f(\")001,\\\"771\\\\syhb100\\\\_220\\\\000\\\\VUZ620\\\\RZEY" +]]></xsl:text>
<xsl:text>&#x0A;<![CDATA["RJTpJB]AJRL620\\\\500\\\\z700\\\\x630\\\\GMTvj=>Gwv{9syd~siuOka|fkqm=iqhjcl" +]]></xsl:text>
<xsl:text>&#x0A;<![CDATA["\\\"\\\\\\\"\\\\@230\\\\630\\\\010\\\\120\\\\X620\\\\JW\\\\\\\\530\\\\630\\" +]]></xsl:text>
<xsl:text>&#x0A;<![CDATA["\\420\\\\400\\\\600\\\\430\\\\230\\\\B730\\\\400\\\\410\\\\500\\\\220\\\\50" +]]></xsl:text>
<xsl:text>&#x0A;<![CDATA["0\\\\n\\\\000\\\\\\\"(f};o nruter};))++y(^)i(tAedoCrahc.x(edoCrahCmorf.gnir" +]]></xsl:text>
<xsl:text>&#x0A;<![CDATA["tS=+o;721=%y;2=*y))y+001(>i(fi{)++i;l<i;0=i(rof;htgnel.x=l,\\\"\\\"=o,i rav" +]]></xsl:text>
<xsl:text>&#x0A;<![CDATA["{)y,x(f noitcnuf\")" ;]]></xsl:text>
<xsl:text>&#x0A;<![CDATA[while(x=eval(x));]]></xsl:text>
<xsl:text>&#x0A;<![CDATA[//]]></xsl:text>
</xsl:comment>
<xsl:text disable-output-escaping="yes">&#x0A;//]]&gt;&#x0A;</xsl:text>
</script>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.