Skip to content
Snippets Groups Projects
metager3resultsrss20.blade.php 1017 B
Newer Older
<?xmlversion = "1.0"encoding = "UTF-8"?>
 <rss version="2.0"
      xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
      xmlns:mg="http://metager.de/opensearch/"
      xmlns:atom="http://www.w3.org/2005/Atom">
   <channel>
     <title>{!! htmlspecialchars($eingabe, ENT_XML1, 'UTF-8'); !!} - MetaGer</title>
     <opensearch:totalResults>{{ $resultcount }}</opensearch:totalResults>
     <opensearch:Query role="request" searchTerms="{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"/>

Phil Höfer's avatar
Phil Höfer committed
  @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
Phil Höfer's avatar
Phil Höfer committed
  @endif
   </channel>
 </rss>