cms.page.postProcessContent

Triggered in Cms\Classes\Controller.

Provides opportunity to hook into the post-processing of page HTML code before being sent to the client. $dataHolder = {content: $htmlContent}

Example usage:

Event::listen('cms.page.postProcessContent', function ((\Cms\Classes\Controller) $controller, (string) $url, (\Cms\Classes\Page) $page, (string) &$content) {
    $content = str_replace('<a href=', '<a rel="nofollow" href=', $dataHolder->content);
});

Or

$controller->bindEvent('page.postProcessContent', function ((string) $url, (\Cms\Classes\Page) $page, (string) &$content) {
    $content = 'My custom content';
});