metager3resultsrss20.blade.php 861 Bytes
Newer Older
1
2
3
4
5
<?xmlversion = "1.0"encoding = "UTF-8"?>
 <rss version="2.0"
      xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
      xmlns:atom="http://www.w3.org/2005/Atom">
   <channel>
6
     <title>{!! htmlspecialchars($eingabe, ENT_XML1, 'UTF-8'); !!} - MetaGer</title>
7
8
9
10
11
12
     <description></description>
     <opensearch:totalResults>{{ $resultcount }}</opensearch:totalResults>
     <opensearch:Query role="request" searchTerms="{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"/>

  @foreach($metager->getResults() as $result)
     <item>
13
14
       <title>{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}</title>
       <link>{!! htmlspecialchars($result->link, ENT_XML1, 'UTF-8'); !!}</link>
15
       <description>
16
          {!! htmlspecialchars($result->descr, ENT_XML1, 'UTF-8'); !!}
17
18
19
20
21
       </description>
     </item>
  @endforeach
   </channel>
 </rss>