SproutCMS

This is the code documentation for the SproutCMS project

function htmlNoDup()

Encoding for HTML, but safe from double-encoding of existing entities

Usage

string Enc::htmlNoDup ( string $value );

Example

$html = Enc::html('A & B'); // this is fine; returns A & B

Example

$html = Enc::html('A & B'); // returns A & B

Arguments

  1. string $value
    The text to encode. This should be plain (i.e. non-HTML) text

Return value

  • string