feed-validator
Version:
Simple validator for RSS, Atom or opensearch.xml that using validator.w3.org/feed and plugins
16 lines (13 loc) • 1.05 kB
JavaScript
// jscs:disable maximumLineLength
exports.correctXml = '<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">' +
'<ShortName>Яндекс</ShortName>' +
'<Description>Воспользуйтесь Яндексом для поиска в Интернете.</Description>' +
'<Image width="16" height="16" type="image/x-icon">https://yastatic.net/lego/_/pDu9OWAQKB0s2J9IojKpiS_Eho.ico</Image>' +
'<Url type="text/html" template="https://yandex.ru/yandsearch?text={searchTerms}&from=os&clid=1836588"/>' +
'<Url type="application/x-suggestions+json" method="GET" template="https://suggest.yandex.ru/suggest-ff.cgi?part={searchTerms}&uil=ru&v=3&sn=5&lr=213&yu=898324731404302355"/>' +
'<InputEncoding>UTF-8</InputEncoding>' +
'</OpenSearchDescription>';
exports.invalidXml = ' ' +
'<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">' +
'<ShortName>Яндекс</ShortName>';
' +
'