liquid_feedback_frontend

view env/format/text_with_links.lua @ 1859:02c34183b6df

Fixed wrong filename in INSTALL file
author bsw
date Tue Nov 28 18:54:51 2023 +0100 (22 months ago)
parents c06c22e8ee35
children
line source
1 function format.text_with_links(value)
2 value = encode.html(value)
3 value = encode.html_newlines(value)
4 value = string.gsub(value, "http[^%s:]*://[^%s]+", function(match)
5 return "<a href=\"" .. match .. "\">" .. match .. "</a>"
6 end)
7 return value
8 end

Impressum / About Us