JSFiddle - React, Tailwind, and code Playground
by ryanttb
HTML
<div class="wiki">
</div>
CSS
.wiki a, .wiki a:visited, .wiki a:hover {
color: black;
cursor: text;
text-decoration: none;
}
.infobox {
width: auto !important;
}
JavaScript
$.ajax({
url: "http://en.wikipedia.org/w/api.php?action=mobileview&page=Iran§ions=0&format=json&noheadings",
dataType: "jsonp",
success: function(result) {
$("<div>").html(result.mobileview.sections[0].text).find(".infobox").appendTo(".wiki").find("a").attr("href", "javascript:void(0);");
//$(".wiki-src").html(result.mobileview.sections[0].text).find(".dablink,.reference").remove().end().find("a").attr("href", "javascript:void(0);");
},
error: function (xhr) {
alert(xhr.status + " " + xhr.statusText);
}
});