really that’s running good, not error, just display JSON.
I have read tutorial on
https://discourse.cakephp.org/t/how-to-make-simple-jquery-ajax-in-cakephp-3-7/5834
and
in ctp
the logic that I’m expect is value of variable $article->Isi
send to jQuery to parse HTML formated
<div id="parseHTML">
</div>
<!-- parser HTML -->
<script type="text/javascript">
jQuery(document).ready(function() {
var tampil = $("#parseHTML");
var parse = '<?= Router::url(["controller" => "articles","action" => "view"]); ?>';
var konv = $.parseHTML(parse);
$.ajax({
type:'post',
url:parse,
data:'&type=parseHTML',
dataType:'json',
success:function(){
tampil.append(konv);
});
});
</script>
<!-- //parser HTML -->
but the goal, doesn’t I’m expect. I wanto view article there’s formated HTML content identation, paragraf, align justify, bold and underline. For easy to reading