A
A
Alexey2017-01-12 20:48:50
Google
Alexey, 2017-01-12 20:48:50

How to format the text in the description (description) of an xml file for rss (google feedburner)?

There is an xml file for rss (google feedburner e-mail):

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Заголовок</title>
    <link>http://mysite.ru</link>
    <description>Новости сайта</description>
    <webMaster>[email protected]</webMaster>
    <image>
      <url>http://mysite.ru/images/logo_88_31.jpg</url>
      <title>заголовок для картинки</title>
      <link>http://mysite.ru/</link>
    </image>
    
    <item>
      <title>Заголовок новости 1</title>
      <link>http://mysite.ru/news1.php</link>
      <description>
Текст новости 1 Текст новости 1 Текст новости 1 Текст новости 1 Текст новости 1 Текст новости 1 Текст новости 1 Текст новости 1 Текст новости 1 Текст новости 1 Текст новости 1 
  			</description>
    </item>		
    
    <item>
      <title>Заголовок новости 2</title>
      <link>http://mysite.ru/news2.php</link>
      <description>
Текст новости 2 Текст новости 2 Текст новости 2 Текст новости 2 Текст новости 2 Текст новости 2 Текст новости 2 Текст новости 2 Текст новости 2 Текст новости 2 Текст новости 2 
  			</description>
    </item>				
    

  </channel>
</rss>

For the recipient, the news description text (description field) is displayed continuously:
"News text 1 News text 1 News text 1 News text 1 News text 1 News text 1"
Is it possible and how to do this in order to use text formatting (at least line feed and bold font).
" News text
1 News text 1 News text 1 News text 1 News text 1 News
text 1 News text 1 News text 1 News text 1 News
text 1 -whether I realize))), so I will be grateful for editing the above code,
so that newlines and bold text appear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2017-01-12
@makasb

It is possible to try by means of CDATA.
You can try line wrapping with the ASCI character "\n"

<description>Верлибр \n слабопроницаем.</description>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question