[SOLVED] Replace character in body

Hey guys,

Is there a way to replace special characters like “„” and ““” in the body always automatically?

Thx,
Pat

Use @process on your content

String.replace("canal", "ana", "oo") and String.pregReplace(..) is available

Hey Soren,
thank you for your answer. I have tried this in Root.fusion page.body { }

@process.String.replace('„', '"')

but I get a Syntax error.

Hi
You need to do it like that:

body.@process.replaceQuotationMarks = ${String.replace(value, '„', '"')}

With String.pregReplace(..) you can even do more advanced stuff, because you can use regex.

Documentation

Hi Jon!

Thank you, it works.

Thx!

1 Like