TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ParseHtmlController Class Reference

Public Member Functions

 __construct ()
 
 init ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main_parse_html ($openKeys)
 

Public Attributes

 $content
 
 $modData
 
 $doc
 
 $extKey = 'rtehtmlarea'
 
 $prefixId = 'TYPO3HtmlParser'
 

Protected Member Functions

 keepSpanTagsWithId (&$HTMLparserConfig)
 

Protected Attributes

 $moduleName = 'rtehtmlarea_wizard_parse_html'
 

Detailed Description

Content parsing for htmlArea RTE

Definition at line 24 of file ParseHtmlController.php.

Constructor & Destructor Documentation

__construct ( )

Initialize

Definition at line 63 of file ParseHtmlController.php.

References ParseHtmlController\init().

Member Function Documentation

init ( )
Returns
void

Definition at line 71 of file ParseHtmlController.php.

References $GLOBALS, GeneralUtility\_GP(), and GeneralUtility\makeInstance().

Referenced by ParseHtmlController\__construct().

keepSpanTagsWithId ( $HTMLparserConfig)
protected

Modify incoming HTMLparser config in an attempt to keep span tags with id Such tags are used by the RTE in order to restore the cursor position when the cleaning operation is completed.

Parameters
array$HTMLparserConfig,incoming HTMLParser configuration (wil be modified)
Returns
void

Definition at line 141 of file ParseHtmlController.php.

References GeneralUtility\inList(), and GeneralUtility\rmFromList().

Referenced by ParseHtmlController\main_parse_html().

main_parse_html (   $openKeys)
mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request or subrequest As this controller goes only through the main_parse_html() method, it is rather simple for now

Parameters
ServerRequestInterface$requestthe current request
ResponseInterface$response
Returns
ResponseInterface the response with the content

Definition at line 91 of file ParseHtmlController.php.

References ParseHtmlController\main_parse_html().

Member Data Documentation

$content

Definition at line 29 of file ParseHtmlController.php.

$doc

Definition at line 41 of file ParseHtmlController.php.

$extKey = 'rtehtmlarea'

Definition at line 46 of file ParseHtmlController.php.

$modData

Definition at line 34 of file ParseHtmlController.php.

$moduleName = 'rtehtmlarea_wizard_parse_html'
protected

Definition at line 58 of file ParseHtmlController.php.

$prefixId = 'TYPO3HtmlParser'

Definition at line 51 of file ParseHtmlController.php.