public function compile($string) {
$string = addslashes($string);
$string = $this->compileCodeTags($string);
$string = $this->compileImageTags($string);
return addslashes($string);
}
function compileArticle(id) {
if (!confirm("Potwierdź")) {
return;
}
contentRaw = $("#contentRaw-" + id).html();
introductionRaw = $("#introductionRaw-" + id).html();
$.post("/Ajax/CompileArticle.html", { "id": id, "contentRaw": contentRaw, "introductionRaw": introductionRaw }, );
}