[TASK] Code cleanup for RteHtmlParser 68/51268/5
authorBenni Mack <benni@typo3.org>
Wed, 11 Jan 2017 15:57:36 +0000 (16:57 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 11 Jan 2017 20:24:32 +0000 (21:24 +0100)
commit4740ae5c13a080ea0a9b1ba820b445ad96f994c1
treedc5a3e8887c80c35fee75cbd9f750d254b2a4025
parentbd4c29e7bf84d2db53d3d1598d9ac9cb6740cfd5
[TASK] Code cleanup for RteHtmlParser

Several code parts have been cleaned up and sorted into separate methods
to ensure readability.

Certain options defined by procOptions are now initialized at the very
beginning, before all transformations.

Resolving modes are moved into a separate method, as well as configuring
the entry- and exit-HTML parser, making the main method easier to read.

Cleaning up content and adding <p> tags around "simple" content lines
has been split up as well to avoid code duplication.

Resolves: #79280
Releases: master
Change-Id: Ib734a8cedebff3cc0b415155b6328bf3a77841e9
Reviewed-on: https://review.typo3.org/51268
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Html/RteHtmlParser.php