Skip to content

Instantly share code, notes, and snippets.

View bauhouse's full-sized avatar

Stephen Bau bauhouse

View GitHub Profile
<data>
<hello>paste your xml here</hello>
</data>
<data>
<hello>paste your xml here</hello>
</data>
<data>
<hello>paste your xml here</hello>
</data>
<data>
<hello>paste your xml here</hello>
</data>
<data>
<hello>paste your xml here</hello>
</data>
<data>
<hello>
<entry id="1" type="statement">
<phrase>Hello</phrase>
<name>World</name>
</entry>
<entry id="2" type="question">
<phrase>How are you</phrase>
</entry>
</hello>
<data>
<useragent-details mobile="no" chromeframe="no" robot="no">
<browser version="5.2" handle="safari">Safari</browser>
<operating-system handle="mac-os-x-lion" platform="Apple">Mac OS X Lion</operating-system>
<ip-address>127.0.0.1</ip-address>
</useragent-details>
<device-categorizr>desktop</device-categorizr>
</data>
@bauhouse
bauhouse / email-obfuscator.xsl
Created April 19, 2012 21:52
Email Obfuscator
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:str="http://exslt.org/strings" extension-element-prefixes="str">
<!--
Name: E-mail Obfuscator
Version: 0.1
Author: Nick Dunn <nick@nick-dunn.co.uk>
URL: http://symphony-cms.com/downloads/xslt/file/20574/
Modified by Stephen Bau to use URL encoding
and decimal entities as well as hexadecimal entities
<data>
<object id="week_35">Week 35</object>
<object id="blah_1">Blah 1</object>
<object id="week_64">Week 64</object>
</data>
<?xml version="1.0" encoding="utf-8" ?>
<data>
<explore-screenshots>
<section id="75" handle="screenshots">Screenshots</section>
<entry id="33056">
<caption mode="formatted"><p>Symphony's interface is simple and elegant.</p></caption>
<image size="79 KB" path="/assets/images/backend" type="image/png">
<filename>entry-list-1338263233.png</filename>
<meta creation="2012-05-29T13:47:13+10:00" width="802" height="470" />
</image>