⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
plugins
/
panel
/
news
/
Edit File: atom.ts
import { getProperty } from './feed'; import { Feed } from './types'; export function parseAtomFeed(txt: string): Feed { const domParser = new DOMParser(); const doc = domParser.parseFromString(txt, 'text/xml'); const feed: Feed = { items: Array.from(doc.querySelectorAll('entry')).map((node) => ({ title: getProperty(node, 'title'), link: node.querySelector('link')?.getAttribute('href') ?? '', content: getProperty(node, 'content'), pubDate: getProperty(node, 'published'), ogImage: node.querySelector("meta[property='og:image']")?.getAttribute('content'), })), }; return feed; }
Simpan