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

Phil Höfer's avatar
Phil Höfer committed
11
  @if($apiAuthorized)
12
13
  @foreach($metager->getResults() as $result)
     <item>
14
15
       <title>{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}</title>
       <link>{!! htmlspecialchars($result->link, ENT_XML1, 'UTF-8'); !!}</link>
16
       <mg:anzeigeLink>{!! htmlspecialchars($result->anzeigeLink, ENT_XML1, 'UTF-8'); !!}</mg:anzeigeLink>
17
       <description>
18
          {!! htmlspecialchars($result->longDescr, ENT_XML1, 'UTF-8'); !!}
19
20
21
       </description>
     </item>
  @endforeach
Phil Höfer's avatar
Phil Höfer committed
22
  @endif
23
24
   </channel>
 </rss>