bsw@1725: function format.text_with_links(value) bsw@1725: value = encode.html(value) bsw@1728: value = encode.html_newlines(value) bsw@1725: value = string.gsub(value, "http[^%s:]*://[^%s]+", function(match) bsw@1725: return "" .. match .. "" bsw@1725: end) bsw@1725: return value bsw@1725: end