Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alexishuxley

    (@alexishuxley)

    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, 6 months ago by alexishuxley.
    • This reply was modified 3 years, 6 months ago by alexishuxley.
    Plugin Author JS Morisset

    (@jsmoriss)

    I’ve added an ‘esc_html’ attribute (false by default) in v2.4.0.

    js.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘some chars mangled’ is closed to new replies.