Hi,
I would like to modify full web page content just before it is written to cache (or output to browser).
The reason for it is e.g. put & nbsp; in some words (in Poland we do not leave some conjunctions on the end of the line).
I'm trying onWebPageComplete and $modx->resource->_output, but to no avail.
Thanks
[ed. note: remek555 last edited this post 13 years ago.]
OnWebPageComplete is too late. It's already cached at that point.
If you want it before the tags are parsed, use OnParseDocument. If you want it after the tags are parsed, use OnWebPagePrerender.