Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 7 additions & 2 deletions OConnor/resources/views/BloodCalendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,13 @@


var content = document.createElement('span');
content.innerHTML = '<a style= "font-size :14px" href="' + urls[i][t] + '">' + animal[i][t] + week[i][t] + '</a>';

// Build the anchor with DOM APIs so list-derived values (URL, animal id, entry text) can't inject markup
var anchor = document.createElement('a');
anchor.setAttribute('style', 'font-size:14px');
anchor.setAttribute('href', urls[i][t]);
anchor.appendChild(document.createTextNode(animal[i][t] + week[i][t]));
content.appendChild(anchor);

row.appendChild(content);
column.appendChild(row);

Expand Down
Loading