0

I am making autolink script with bootstrap div

text = text.replace(/((http:|https:)\/\/[\x21-\x26\x28-\x7e]+)/gi, "<a href='$1'>$1</a>");


item.addClass('well well-small')
    .append($('<div/>').text(text))
    .children('div').children('i').after(username);

href link is not available in this DIV.

bootstrap has function to unvalid the link tag?

4

1 回答 1

1

我想你的意思.html.text

.append($('<div/>').html(text))
于 2013-08-14T07:25:43.137 回答