Hi,

On 27 Aug 2020, at 17:11, Pablo Rodriguez <oinos@gmx.es> wrote:

Dear list,

I have and \xmlraw command that gives some text with percent signs.
ConTeXt parses them as comments (so no output).

Using Lua gsub(), I need to replace something like:

 string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent")

Double it: %%

See also https://www.lua.org/manual/5.3/manual.html#6.4.1 , but the mention of %% is a bit hidden.

Best wishes,
Taco