Download exampleRun example
Replaces the marker with the return value of the function within the whole document

Context: //app/filters/ob/filter/eval

- filter node text content holds the replacement text;
- eval node's first processing instruction holds the function code; this function needs to return a value that is the one to replace the target text with;
Setting up the string to be replaced
Setting up the callback function code