Bug #51943
closedQuotes in RTE link title break HTML output
0%
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()
.
Updated by Ernesto Baschny almost 11 years ago
- Category set to RTE (rtehtmlarea + ckeditor)
- Status changed from New to Accepted
Yes, this indeed a problem. Helmut is working on fixing the encoding in these fields related to the browselinks wizard (#41413). Maybe this other problem could / should be tackled at the same time, as you also have similar trouble if you add greater/smaller-than signs in your title.
Updated by Markus Klein about 9 years ago
Real quotes will be allowed with #55759