Documentation · ViewHelper reference

Format / HtmlentitiesViewHelper


Applies htmlentities() escaping to a value
  • Tag usage example

    <f:format.htmlentities value="NULL" keepQuotes="1" encoding="NULL" doubleEncode="1">
    	<!-- tag content - may be ignored! -->
    </f:format.htmlentities>
  • Inline usage example

    {f:format.htmlentities(value: 'NULL', keepQuotes: 1, encoding: 'NULL', doubleEncode: 1)}

Arguments

Argument Description Type
doubleEncode

If FALSE existing html entities won't be encoded, the default is to convert everything.

boolean
encoding string
keepQuotes

if TRUE, single and double quotes won't be replaced (sets ENT_NOQUOTES flag)

boolean
value

string to format

string
Required attribute

Revision history

commit 8c5ec2d0affc69ce725f77e3d9f5a7a3e281b89f
Author: Bastian Waidelich <*****@typo3.org>
Date:   Thu Jul 28 13:47:41 2011 +0200

    [TASK] Split escape ViewHelper into dedicated format ViewHelpers
    
    This change creates a dedicated ViewHelper for all formats the
    Escape ViewHelper supported.
    This also marks the Escape ViewHelper deprecated and adds unit
    tests for the new ViewHelpers.
    
    Change-Id: I69b598c3d328cbf6613437078d5b62a83c2c85f0
    Related: #27628

commit b3637985e7ebb34dd12d6181b214ae5ce4b70f54
Author: Bastian Waidelich <*****@typo3.org>
Date:   Thu Jul 28 17:01:44 2011 +0200

    [!!!][FEATURE] Compilation of Fluid templates to PHP files
    
    This adds a compile step to the parsing process of templates, layouts and
    partials.
    If no compiled cache file exists, Fluid will create it while parsing the
    respective Fluid template.
    The cache file is invalidated as soon as the template/layout/partial
    has been modified (or if caches are flushed).
    This speeds up the rendering process by factor 2-5!
    
    Breaking change:
    
    * AbstractViewHelper::$arguments are no longer an object but an array.
      If you used $this->arguments->hasArgument() in your custom ViewHelpers,
      you'll have to replace this with $this->hasArgument()
    
    Change-Id: Idb71f85ea7223755df4bc1c0ff9f8807f1924323
    Related: #28544
    Resolves: #28545

commit fd09d197fa8886b97cb20aa9573f39cd08ce989e
Author: Bastian Waidelich <*****@typo3.org>
Date:   Thu Nov 10 18:27:58 2011 +0100

    [TASK] S*****@author annotations
    
    This backports three recent changes of the TYPO3.Fluid package:
    - R*****@license annotation from files (290f4f5)
    - Simplify license header in PHP files (14bacba)
    - D*****@author tags from source code (9c2e837)
    
    This should not contain any functional change!
    
    Change-Id: I9376dca4af78c4f0f82413011d115b8ad04634dd

commit ec3891d8d4e339d8319428211207e6201be9fd73
Author: Thomas Maroschik <*****@dfau.de>
Date:   Wed Oct 17 21:18:26 2012 +0200

    [TASK][WIP] Move non class code back to source files
    
    Change-Id: I620d2e61860142cdc89cc83474c95542799961c0

commit 554e8f890dcc0dd86a27518b58e2b54be26fd37e
Author: Thomas Maroschik <*****@dfau.de>
Date:   Wed Oct 17 22:20:17 2012 +0200

    [TASK] Namespace classes
    
    Change-Id: Ia7432e1c923826ed58206bca15fb94509adbd508

commit 9d13dedf017b614b834261b1bf5d4acb2201f1d4
Author: Alexander Schnitzler <*****@typovision.de>
Date:   Fri Nov 16 19:49:02 2012 +0100

    [CLEANUP] Replace FLOW3 with TYPO3 Flow
    
    Releases: 6.0
    Fixes: #43036
    Change-Id: I62df23587301b4cde3ddeae3686b34f54fe1182e
    Reviewed-on: http://review.typo3.org/16498
    Reviewed-by: Alexander Schnitzler
    Tested-by: Alexander Schnitzler

commit 9d46e6932d35c79bf87c96fa38b8e537c4192f23
Author: Alexander Schnitzler <*****@typovision.de>
Date:   Tue Nov 20 16:27:02 2012 +0100

    [CLEANUP] Adjust code to CGL and fix small namespace bugs
    
    * whitespaces, tabs and blank line issues
    * bool -> boolean
    * int -> integer
    * fix wrong namespace annotations
    
    Fixes: #43157
    Releases: 6.0
    Change-Id: I8397948e19248db029d8efd1555ee56e4982742d
    Reviewed-on: http://review.typo3.org/16619
    Reviewed-by: Helmut Hummel
    Tested-by: Helmut Hummel

commit 50d433bbde06b4b9eab146caea64d09239949e64
Author: Tymoteusz Motylewski <*****@gmail.com>
Date:   Sun Mar 3 18:53:42 2013 +0100

    [TASK] Sync CMS Fluid with Flow Fluid 1.1 (part2)
    
    This is the second part of a backport fluid from Flow.
    
    Change-Id: I96e47131414c50801ff7628508dc05d7d7b5e106
    Releases: 6.1
    Resolves: #44819
    Fixes: #45985
    Reviewed-on: https://review.typo3.org/18163
    Reviewed-by: Wouter Wolters
    Tested-by: Wouter Wolters
    Reviewed-by: Marc Bastian Heinrichs
    Tested-by: Marc Bastian Heinrichs

commit 77f29a3c69a7cbb27b34072754aa503bace6c9f1
Author: Christian Kuhn <*****@schwarzbu.ch>
Date:   Tue Oct 1 14:40:56 2013 +0200

    [TASK] Remove closing PHP tags
    
    Change-Id: Iaa92566c53301e49396fc9fb26b0b339c48d567b
    Resolves: #52360
    Releases: 6.2
    Reviewed-on: https://review.typo3.org/24212
    Reviewed-by: Christian Kuhn
    Tested-by: Christian Kuhn
    Reviewed-by: Ernesto Baschny
    Tested-by: Ernesto Baschny
    Reviewed-by: Anja Leichsenring
    Tested-by: Anja Leichsenring