I found a solution, which, unfortunately, does not use JSM’s plugin.
I used the code here and extended it a little to return esc_html(@file_get_contents($file));
.
(I had already tried adding a filter to WP to call esc_html()
, so that I could continue to use JSM’s plugin, but that silently failed.)
(Links above no longer show JSM’s plugin mangling text.)
-
This reply was modified 3 years, 3 months ago by alexishuxley.
-
This reply was modified 3 years, 3 months ago by alexishuxley.