Thismodule is rated asready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned onhelp pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed throughsandbox testing rather than repeated trial-and-error editing.
This Lua module is used onapproximately 143,000 pages. To avoid major disruption and server load, any changes should be tested in the module's/sandbox or/testcases subpages, or in your ownmodule sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on thetalk page before implementing them.
"At 100 °F, & with a "burning" sun above, we , we ⁄walked⁄."
In code:
"At 100 °F, & with a "burning" sun above, we ⁄walked⁄." -- wikitext
Processing:
{{#invoke:decodeEncode|decode|s=At 100 °F, & with a "burning" sun above, we ⁄walked⁄.}} →
At 100 °F, & with a "burning" sun above, we ⁄walked⁄. -- In code: straight characters, no named entities.
Renders, again:
"At 100 °F, & with a "burning" sun above, we ⁄walked⁄."
Decode a reduced set only
By setting|subset_only=true, only these five entity names are decoded: '<', '>', '&', '"', ' ' (that is, into '<', '>', '&', '"', ' ').
Note: There is a difference with the relevant Lua parameter. (This only concerns your task if you also work directly with the Lua mw.text.decode function). Lua documentation defines parameter|decodeNamedEntities=, having this effect: whenomitted or false, only the reduced set of entities is recognized and decoded. This use of 'false' isinverted in using|subset_only=:|decodeNamedEntities=false =|subset_only=true.
Also, this module ignores the "omitted" logic:|subset_only= should be set explicitly to 'true' to be effective.
13 Sep 2021: NOTE: The encode function with user-supplied charset is now used productively in{{R/superscript}} and{{R/ref}}. Before implementing breaking changes here, these templates need to be adjusted accordingly!
26 Sep 2021:U+2009THIN SPACE ( ,  )
Note: Possible bug: Decoding  works, but  doesn't.
Resolved in code.
4 Feb 2023:U+03B5εGREEK SMALL LETTER EPSILON (ε, ε)