:navigation-title: format.htmlentities
.. include:: /Includes.rst.txt
.. _typo3-fluid-format-htmlentities:
========================================================
Format.htmlentities ViewHelper ``
========================================================
.. typo3:viewhelper:: format.htmlentities
:source: ../../Global.json
:display: tags,description,gitHubLink,arguments
.. _typo3-fluid-format-htmlentities-examples:
Examples
========
Default notation
----------------
::
{text}
Text containing the following signs ``&`` ``"`` ``'`` ``<`` ``>`` will be processed by :php:`htmlentities()`.
These will result in: ``&`` ``"`` ``'`` ``<`` ``>``.
Inline notation
---------------
::
{text -> f:format.htmlentities(encoding: 'ISO-8859-1')}
Text containing the following signs ``&`` ``"`` ``'`` ``<`` ``>`` will be processed by :php:`htmlentities()`.
These will result in: ``&`` ``"`` ``'`` ``<`` ``>``.
But encoded as ISO-8859-1.