Smart Code Escape Smart Code Escape

Smart Code Escape

Created by: Daniel Pataki

Rating:
Downloaded: 1k times

A tiny plugin for WordPress which converts greater than signs, smaller than signs and ampersands to html entities within pre tags. It supports semantic syntax you would use when using the Prism highlighter for example. If a code tag sits immediately within a pre tag it will not be escaped.

Code is escaped before it is displayed which gives you easy editing access in the backend as you will always see the unescaped version.

Screenshots

  • Some code written in the admin. Notice, no need to encode entities
  • This is how it is shown on the front-end. The initial code tag is not encoded for use in Prism.

Categories

Get New Themes & Resources