Sono un ignorante crasso di dom e js, ma devo per necessità estrema ricorrere alla Google Feed Api. Recuperato il feed lo devo restituire con questo output per ragioni di css: <span style="font-family: courier new,monospace;"><br>
<br><span>mese anno</span><a href="link">Titolo</a></span><br> <br>Ho scritto<br><br><span style="font-family: courier new,monospace;">var entry = result.feed.entries[i];</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> var div = document.createElement("div");</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> var link1 = document.createElement('a');</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> var li = document.createElement('li');</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> var span = document.createElement('span');</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> var data = new Date(entry.publishedDate);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> var data1 = data.getMonth() + ' ' + data.getFullYear();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> link1.appendChild(document.createTextNode(entry.title));</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> link1.setAttribute('href', entry.link);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> span.appendChild(document.createTextNode(data1));</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> span.appendChild(link1)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> li.appendChild(span)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> div.appendChild(li)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> container.appendChild(div);</span><br>
<br>ottengo ovviamente questo<br><span style="font-family: courier new,monospace;"><span xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>">2 2011<a href="<a href="http://issuu.com/thinkquarterly/docs/01-data/1">http://issuu.com/thinkquarterly/docs/01-data/1</a>">Think Quarterly - 01 Data</a></span></span><br>
<br>invece vorrei ottenere questo<br><span style="font-family: courier new,monospace;"><span xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>">2 2011</span><a href="<a href="http://issuu.com/thinkquarterly/docs/01-data/1">http://issuu.com/thinkquarterly/docs/01-data/1</a>">Think Quarterly - 01 Data</a></span><br>
<br>C'è qualche anima pia che mi può aiutare? So che è una cosa banale, ma non ci riesco... e sto perdendoci ore!<br><br>Grazie!<br><br>E.<br>