Hello, you have come here looking for the meaning of the word
Module:string/encode entities. In DICTIOUS you will not only get to know all the dictionary meanings for the word
Module:string/encode entities, but we will also tell you about its etymology, its characteristics and you will know how to say
Module:string/encode entities in singular and plural. Everything you need to know about the word
Module:string/encode entities you have here. The definition of the word
Module:string/encode entities will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
Module:string/encode entities, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
-- TO BE REPLACED BY encode_entities in ]. This function decodes on input by default to prevent double-encoding, which the new function does not, so implementations need to take this into account when being converted.
local debug_track_module = "Module:debug/track"
local string_decode_entities_module = "Module:string/decodeEntities"
local string_utilities_module = "Module:string utilities"
local require = require
local function decode_entities(...)
decode_entities = require(string_decode_entities_module)
return decode_entities(...)
end
local function encode_entities(...)
encode_entities = require(string_utilities_module).encode_entities
return encode_entities(...)
end
local function track(...)
track = require(debug_track_module)
return track(...)
end
return function(str, charset, raw)
if not raw then
local decoded = decode_entities(str)
if decoded ~= str then
track("string/encode entities/decoded first")
end
str = decoded
end
return encode_entities(str, charset, nil, true)
end