Module:Lang: Difference between revisions

Jump to navigation Jump to search
Fixed processing of HTML tags for get_string
remove <br> processing
Line 46: Line 46:
     -- Remove all other span tags (keeping only content)
     -- Remove all other span tags (keeping only content)
     text = text:gsub('<span class=".-">(.-)</span>', '%1')
     text = text:gsub('<span class=".-">(.-)</span>', '%1')
   
    -- Process <br> tags (replace with newline)
    text = text:gsub('<br>', '\n')
    text = text:gsub('<br/>', '\n')
    text = text:gsub('<br />', '\n')
      
      
     return text
     return text