2011-03-28 21 views
6

He agregado el título, el enlace del título y la descripción en las fuentes RSS. Pero no se puede agregar la imagen como parte de los canales RSS.cómo agregar la imagen como parte de las fuentes RSS

favor Guía ¿Cómo puedo incluir la imagen dentro de la etiqueta y mostrarlos en los canales RSS

Saludos, Gourav

Respuesta

11

envolver su descripción en CDATA comments e insertar las imágenes como HTML <img> etiquetas.

TechCrunch tiene ejemplos en su alimentación que se puede trabajar a partir de: http://feeds.feedburner.com/TechCrunch

Por ejemplo de su alimentación actual sobre el primer elemento empresarios del Reino Unido usando la descripción siguiente etiqueta:

<description> 
    <![CDATA[ 
     <img src="http://eu.techcrunch.com/wp-content/uploads/startupbritain.jpg" alt="" /> 
     This morning in London, the UK's answer to <a href="http://www.whitehouse.gov/issues/startup-america"> 
     Startup America</a> launches, titled - guess what? - <a href="http://www.startupbritain.org/">Startup Britain</a>. 
     That similarity aside, the initiative has been put together by a number of existing UK entrepreneurs and 
     is not being backed by any government money, unlike the Obama initiative. Instead, we have here a 
     ground-up entrepreneur-led initiative which is seeing over 60 leading brands offer services to 
     up-and-coming startups in the UK. This is not specifically about tech startups - but it may well appeal to that sector. 

     The campaign is being launched by Prime Minister David Cameron, who is known to be very pro-enterprise. 
     The UK has 270,000 businesses that start up every year but many fail due to a lack of support. So in 
     effect the Startup Britain initiative is doing a few things much more differently. It's offering a 
     package of discounts and free trial on business services like insurance, broadband, advertising, 
     office space and more. The claim is that this amounts to over £1,500 in value for every startup 
     company in Britain. Startup Britain is a portal site to a package of these services. 
     <img alt="" 
      border="0" 
      src="http://stats.wordpress.com/b.gif?host=techcrunch.com" 
      width="1" height="1" /> 
    ]]> 
</description> 
Cuestiones relacionadas