Skip to content

Official Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.

fix: escape the followers count in the LinkedIn graph view

ntohidi2efcccc5d183
diff --git a/docs/apps/linkdin/templates/graph_view_template.html b/docs/apps/linkdin/templates/graph_view_template.html
index 84cb0258..8ac31316 100644
--- a/docs/apps/linkdin/templates/graph_view_template.html
+++ b/docs/apps/linkdin/templates/graph_view_template.html
@@ -519,7 +519,7 @@
<div class="flex justify-between items-center text-xs">
<div class="flex items-center">
<i class="fa fa-users mr-1 text-neutral-400"></i>
- <span>${n.followers?.toLocaleString() || '0'} followers</span>
+ <span>${esc(n.followers?.toLocaleString() || '0')} followers</span>
</div>
<a href="https://www.linkedin.com${esc(n.handle || '')}" target="_blank" class="text-emerald-400 hover:text-emerald-300">
<i class="fab fa-linkedin mr-1"></i>View on LinkedIn
@@ -1132,7 +1132,7 @@
<div class="text-neutral-400">${esc(node.industry || 'Industry: N/A')}</div>
<div class="flex items-center mt-1">
<i class="fas fa-users mr-1 text-blue-400"></i>
- <span>${node.followers?.toLocaleString() || '0'} followers</span>
+ <span>${esc(node.followers?.toLocaleString() || '0')} followers</span>
</div>
<div class="mt-1">${esc(node.about || '')}</div>
`;