Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Replace "t3-function-htmlparser" with "confval" #1080

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 48 additions & 16 deletions Documentation/Functions/Htmlparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,48 @@ HTMLparser
Properties
==========

.. _htmlparser-allowTags:

allowTags
---------

.. t3-function-htmlparser:: allowTags
.. confval:: allowTags

:Data type: list of tags

Default allowed tags
Default allowed tags.


.. _htmlparser-stripEmptyTags:

stripEmptyTags
--------------

.. t3-function-htmlparser:: stripEmptyTags
.. confval:: stripEmptyTags

:Data type: :ref:`data-type-boolean`

Passes the content to PHPs :php:`strip_tags()`.


.. _htmlparser-stripEmptyTags-keepTags:

stripEmptyTags.keepTags
-----------------------

.. t3-function-htmlparser:: stripEmptyTags.keepTags
.. confval:: stripEmptyTags.keepTags

:Data type: :ref:`data-type-string`

Comma separated list of tags to keep when applying :php:`strip_tags()`.


.. _htmlparser-tags:

tags.[tagname]
--------------

.. t3-function-htmlparser:: tags
.. confval:: tags

:Data type: :ref:`data-type-boolean` / string of :ref:`htmlparser-tags`

Expand All @@ -54,77 +65,98 @@ tags.[tagname]

[tagname] in lowercase.


.. _htmlparser-localNesting:

localNesting
------------

.. t3-function-htmlparser:: localNesting
.. confval:: localNesting

:Data type: list of tags, must be among preserved tags

List of tags (among the already set tags), which will be forced to
have the nesting-flag set to true
have the nesting-flag set to true.


.. _htmlparser-globalNesting:

globalNesting
-------------

.. t3-function-htmlparser:: globalNesting
.. confval:: globalNesting

:Data type: (ibid)

List of tags (among the already set tags), which will be forced to
have the nesting-flag set to "global"
have the nesting-flag set to "global".


.. _htmlparser-rmTagIfNoAttrib:

rmTagIfNoAttrib
---------------

.. t3-function-htmlparser:: rmTagIfNoAttrib
.. confval:: rmTagIfNoAttrib

:Data type: (ibid)

List of tags (among the already set tags), which will be forced to
have the :t3-function-htmlparser:`rmTagIfNoAttrib` set to true
have the :ref:`htmlparser-rmTagIfNoAttrib` set to true.


.. _htmlparser-noAttrib:

noAttrib
--------

.. t3-function-htmlparser:: noAttrib
.. confval:: noAttrib

:Data type: (ibid)

List of tags (among the already set tags), which will be forced to
have the allowedAttribs value set to zero (which means, all attributes
will be removed.


.. _htmlparser-removeTags:

removeTags
----------

.. t3-function-htmlparser:: removeTags
.. confval:: removeTags

:Data type: (ibid)

List of tags (among the already set tags), which will be configured so
they are surely removed.


.. _htmlparser-keepNonMatchedTags:

keepNonMatchedTags
------------------

.. t3-function-htmlparser:: keepNonMatchedTags
.. confval:: keepNonMatchedTags

:Data type: :ref:`data-type-boolean` / "protect"

If set (:typoscript:`1`), then all tags are kept regardless of tags present as
keys in :php:`$tags`-array.

If :typoscript:`protect`, then the preserved tags have their :html:`<>`
converted to :html:`&lt;` and :html:`&gt;`
converted to :html:`&lt;` and :html:`&gt;`.

Default is to REMOVE all tags, which are not specifically assigned to
be allowed! So you might probably want to set this value!


.. _htmlparser-htmlSpecialChars:

htmlSpecialChars
----------------

.. t3-function-htmlparser:: htmlSpecialChars
.. confval:: htmlSpecialChars

:Data type: -1 / 0 / 1 / 2

Expand Down
1 change: 0 additions & 1 deletion Documentation/Settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ use_opensearch =

[sphinx_object_types_to_add]

t3-function-htmlparser = t3-function-htmlparser // t3-function-htmlparser // Function HTMLparser
t3-function-if = t3-function-if // t3-function-if // Function If
t3-function-imagelinkwrap = t3-function-imagelinkwrap // t3-function-imagelinkwrap // Function imageLinkWrap
t3-function-imgresource = t3-function-imgresource // t3-function-imgresource // Function imgResource
Expand Down
Loading