📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv2.demodesign.com.tr
/
assets
/
vendor
/
tweetie
/
src
/
utils
📝
entities.js
← Geri Dön
function urls(text, entity) { return text.replace(entity.url, `<a href="${entity.expanded_url}" target="_blank">${entity.display_url}</a>`); } function users(text) { return text.replace(/@([a-zA-Z0-9_]+)/g, '<a href="https://twitter.com/$1" target="_blank">@$1</a>'); } function hashtags(text, entity) { const hash = entity.text; return text.replace(`#${hash}`, `<a href="https://twitter.com/hashtag/${hash}?src=hash" target="_blank">#${hash}</a>`); } export default function(text, entities) { if (entities.urls && entities.urls.length) { entities.urls.forEach((entity) => text = urls(text, entity)); } if (entities.hashtags && entities.hashtags.length) { entities.hashtags.forEach((entity) => text = hashtags(text, entity)); } text = users(text); return text; }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula