htmlEntitiesEncode

htmlEntitiesEncode ( string text ) : float

Encode a text with HTML entities. Ex: remplace é by é

Example


console(htmlEntitiesEncode('texte accentué !')) //-> <strong>texte</strong> accentué !

Parameters

text

Text to encode.