--- /dev/null
+
+BEGIN;
+
+-- Plan the tests.
+SELECT plan(5);
+
+SELECT is(
+ evergreen.xml_escape('A Song of Ice & Fire'),
+ 'A Song of Ice & Fire',
+ 'XML-Escape ampersand'
+);
+
+SELECT is(
+ evergreen.xml_escape('A Song of Rice and <<< Fire'),
+ 'A Song of Rice and <<< Fire',
+ 'XML-Escape less-than'
+);
+
+SELECT is(
+ evergreen.xml_escape('>A Song of Mice and >>> Fire'),
+ '>A Song of Mice and >>> Fire',
+ 'XML-Escape greater-than'
+);
+
+SELECT is(
+ evergreen.xml_escape('<A> Song of Vice &&& <<Fire'),
+ '<A> Song of Vice &&& <<Fire',
+ 'XML-Escape mixed'
+);
+
+SELECT is(
+ evergreen.xml_escape('åbçdéñœöîøæÇıÂÅÍÎÏÔÔÒÚÆŒè'),
+ 'åbçdéñœöîøæÇıÂÅÍÎÏÔÔÒÚÆŒè',
+ 'XML-Escape no changes'
+);
+
+-- Finish the tests and clean up.
+SELECT * FROM finish();
+ROLLBACK;