Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vast ad tag uri do not escape #32

Merged
merged 2 commits into from
Feb 2, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
wrap wrapper uris in cdata
tbuchok committed Jan 30, 2015
commit c83498cdbfc014db539c0d3a38bc8f7b5632e8c5
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -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) {