From c83498cdbfc014db539c0d3a38bc8f7b5632e8c5 Mon Sep 17 00:00:00 2001 From: Tom Buchok Date: Fri, 30 Jan 2015 17:45:24 -0500 Subject: [PATCH 1/2] wrap wrapper uris in cdata --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 24e4c51..85d0430 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ var xml = function(options) { if (ad.structure.toLowerCase() === 'wrapper') { var wrapper = Ad.element('Wrapper'); wrapper.element('AdSystem', ad.AdSystem.name, { version : ad.AdSystem.version }); - wrapper.element('VASTAdTagURI', ad.VASTAdTagURI); + wrapper.element('VASTAdTagURI').cdata(ad.VASTAdTagURI); if (ad.Error) wrapper.element('Error').cdata(ad.Error); ad.impressions.forEach(function(impression) { From e15c06c3ed473f1e939c3e0dc0507d8872b8af54 Mon Sep 17 00:00:00 2001 From: Tom Buchok Date: Mon, 2 Feb 2015 11:17:24 -0500 Subject: [PATCH 2/2] bumps package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 21738a9..d9733a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vast-xml", - "version": "1.2.0", + "version": "1.3.0", "description": "VAST XML responses for online video advertisers.", "main": "index.js", "dependencies": {