liquid_feedback_frontend

view env/format/text_with_links.lua @ 1820:2e5b303ea68e

Better handling of use terms, added view for privacy policy
author bsw
date Wed Jan 26 00:33:21 2022 +0100 (2022-01-26)
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