JViewLegacy::escape

Escapes a value for output in a view script.

If escaping mechanism is either htmlspecialchars or htmlentities, uses {@link $_encoding} setting.