Module:Lorebook: Difference between revisions
Escape curly braces ({/}) and wrap output in pre tag to prevent template invocation |
No edit summary Tag: Reverted |
||
| Line 205: | Line 205: | ||
-- and wrap in <pre> tag to preserve formatting | -- and wrap in <pre> tag to preserve formatting | ||
if result and result ~= '' then | if result and result ~= '' then | ||
result = result:gsub('{', '&# | result = result:gsub('{', 'ß'):gsub('}', '}') | ||
return '<pre>' .. result .. '</pre>' | return '<pre>' .. result .. '</pre>' | ||
else | else | ||