by Michal Novák.
I found this one: $content = file_rewrite_pluginfile_urls($page->content, 'pluginfile.php', $context->id, 'mod_page', 'content', $page->revision);
but how to get context->id ?