Actions
Bug #51943
closedQuotes in RTE link title break HTML output
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2013-09-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:
Description
Used link title:
Opens "external link" in new window
Link Tag in RTE after creating it in the linkbrowser:
<a href="http://www.google.de" class="external-link-new-window" title="Opens "external link" in new window" data-htmlarea-external="1"> Linktext </a>
After saving the content element:
<a href="http://www.google.de" class="external-link-new-window" title="Opens "external link" data-htmlarea-external="1"> Linktext </a>
Output in the Frontend:
<a href="http://www.google.de" title="Opens "external link" target="_blank" class="external-link-new-window" > Linktext </a>
Note the three quotes after the title tag (not escaped!).
This value is stored in the database:
<link http://www.google.de - external-link-new-window "Opens "external link" in new window">Linktext</link>
The problem is, that the transformation (ts_css) is removing the HTML special chars from all attribute values, see \TYPO3\CMS\Core\Html\RteHtmlParser->TS_links_db()
:
$attribArray = $this->get_tag_attributes_classic($this->getFirstTag($v), 1);
A possible solution would be to keep the HTML special chars in the databse and to remove the calls at the end of htmlspecialchars
in \TYPO3\CMS\Core\Html\RteHtmlParser->TS_links_rte()
.
Actions