Module:Citation/CS1: Difference between revisions
and newline to url filter
m>Dragons flight (pattern escaping, yay) |
m>Dragons flight (and newline to url filter) |
||
Line 78: | Line 78: | ||
function safeforurl( str ) | function safeforurl( str ) | ||
return str:gsub('%[','['):gsub('%]',']') | return str:gsub('%[','['):gsub('%]',']'):gsub("\n", " "); | ||
end | end | ||