Function I am using:
$(".push-description-top").each(function() {
var text = $(this).text();
var carac = text.length;
if (carac > 0) {
var query = text.split(" ", 14);
query.push('<a href="">... Veja mais!</a>');
res = query.join(' ');
$(this).text(res);
}
});
When pulling text and HTML ( <a href="">... Veja mais!</a>
) from the array, the HTML is coming as normal text and not in HTML format.