Module:Sandbox/LVL: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
No edit summary
LVL (talk | contribs)
No edit summary
Line 131: Line 131:
                     end
                     end
                      
                      
                     -- Append flattened item data (stats, descriptions, shop filters)
                     -- Append flattened item data (stats only, no descriptions/shopfilters)
                    -- Pass lang_code so it can look up the proper in-game names from Lang JSON
                     search_data = search_data .. " " .. extract_search_terms(item_data, lang_code)
                     search_data = search_data .. " " .. extract_search_terms(item_data, lang_code)
                      
                      
                     -- Escape double quotes so it doesn't break the HTML attribute
                     -- Remove double and single quotes so they don't break the HTML attribute
                     search_data = search_data:gsub('"', '"')
                     search_data = search_data:gsub('["\']', '')
                      
                      
                     -- Wrap item and its bullet separator in a searchable span
                     -- Wrap item and its bullet separator in a searchable span