metager3resultsrss20.blade.php 1.15 KB
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
     <opensearch:totalResults>{{ $resultcount }}</opensearch:totalResults>
     <opensearch:Query role="request" searchTerms="{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"/>
10
     <mg:nextSearchResults url="{{htmlspecialchars($metager->nextSearchLink() ,ENT_QUOTES)}}" />
11
12
13
14
15
16
17
18
19
20
21
22
23
      @if($apiAuthorized)
        @foreach($metager->getResults() as $result)
          <item>
            <title>{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}</title>
            <link>{!! htmlspecialchars($result->link, ENT_XML1, 'UTF-8'); !!}</link>
            <mg:anzeigeLink>{!! htmlspecialchars($result->anzeigeLink, ENT_XML1, 'UTF-8'); !!}</mg:anzeigeLink>
            <description>
              {!! htmlspecialchars($result->longDescr, ENT_XML1, 'UTF-8'); !!}
            </description>
          </item>
        @endforeach
      @endif
    </channel>
24
 </rss>