BEGIN; SELECT plan(4); SELECT is((oils_xpath('//*', 'this & that < >'))[1], 'this & that < >', 'oils_xpath - encoded node extracts'); SELECT is((oils_xpath('//text()', 'this & that < >'))[1], 'this & that < >', 'oils_xpath - decoded text() extracts'); SELECT is((oils_xpath('//*/@attr', 'this & that < >'))[1], '"quoted"', 'oils_xpath - decoded " in attribute extracts'); SELECT is((oils_xpath('//*/@attr', E'this & that < >'))[1], E'\'quoted\'', 'oils_xpath - decoded ' in attribute extracts'); ROLLBACK;