.. include:: /Includes.rst.txt .. _typo3fluid-fluid-format-htmlspecialchars: ================================================================ format.htmlspecialchars ViewHelper `` ================================================================ Applies PHP ``htmlspecialchars()`` escaping to a value. See http://www.php.net/manual/function.htmlspecialchars.php Examples ======== Default notation ---------------- :: {text} Output:: Text with & " ' < > * replaced by HTML entities (htmlspecialchars applied). Inline notation --------------- :: {text -> f:format.htmlspecialchars(encoding: 'ISO-8859-1')} Output:: Text with & " ' < > * replaced by HTML entities (htmlspecialchars applied). .. _typo3fluid-fluid-format-htmlspecialchars_arguments: Arguments ========= .. _format.htmlspecialchars_value: value ----- :aspect:`DataType` string :aspect:`Required` false :aspect:`Description` Value to format .. _format.htmlspecialchars_keepquotes: keepQuotes ---------- :aspect:`DataType` boolean :aspect:`Required` false :aspect:`Description` If TRUE quotes will not be replaced (ENT_NOQUOTES) .. _format.htmlspecialchars_encoding: encoding -------- :aspect:`DataType` string :aspect:`Default` 'UTF-8' :aspect:`Required` false :aspect:`Description` Encoding .. _format.htmlspecialchars_doubleencode: doubleEncode ------------ :aspect:`DataType` boolean :aspect:`Default` true :aspect:`Required` false :aspect:`Description` If FALSE html entities will not be encoded