JSFiddle - React, Tailwind, and code Playground
HTML
<div id="txt">
</div>
<ul class="groupsListLinksText">
</ul>
JavaScript
var txt = {
"text": "Click <a href=\"http://www.google.com\">here</a> to access Google"
}
document.getElementById('txt').innerHTML = txt.text;
var data = {
"error": false,
"status": 200,
"message": [{
"data": "{\"title\":\"Welcome to MymoneyKarma First Post\"}",
"id": 487
},
{
"data": "{\"title\":\"Welcome to <iframe src=\"http://www.google.com\">here</iframe> MymoneyKarma First Post\"}",
"id": 488
}
]
};
/* var valuesc = (data.message);
var $grouplistCibil = $('.groupsListLinksText');
$.each(valuesc, function(one, i) {
var Someone = JSON.stringify(i.data);
var otherSie = JSON.parse(Someone);
console.log(otherSie.title);
$('<li class="">' + otherSie.title + '</li>').append($grouplistCibil);
}); */
var data = {
"error": false,
"status": 200,
"message": [{
"data": "{\"title\":\"Welcome to MymoneyKarma First Post\"}",
"id": 487
},
{
"data": "{\"title\":\"Welcome to <iframe src=\"http://www.google.com\">here</iframe> MymoneyKarma First Post\"}",
"id": 488
}
]
};
var valuesc = (data.message);
var $grouplistCibil = $('.groupsListLinksText');
$.each(valuesc, function(one, i) {
var Someone = JSON.stringify(i.data);
var otherSie = JSON.parse(Someone);
console.log(otherSie);
var sfas = JSON.parse(otherSie);
console.log(sfas); console.log(sfas.title);
$('<li class="">' + sfas.title + '</li>').append($grouplistCibil);
});