liquid_feedback_frontend

view env/format/text_with_links.lua @ 1728:c06c22e8ee35

Allow to use newlines in unit/area description
author bsw
date Tue Sep 28 13:54:08 2021 +0200 (2021-09-28)
parents 4a5a79a37db1
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