Project

General

Profile

Actions

Bug #51943

closed

Quotes in RTE link title break HTML output

Added by Alexander Stehlik about 11 years ago. Updated over 9 years ago.

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 &quot;external link&quot; 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 &quot;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().


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #41413: link title got urlencoded in link-wizardClosed2012-09-27

Actions
Related to TYPO3 Core - Bug #55759: Using double quotes in title of links breaks everythingClosedMarkus Klein2014-02-07

Actions
Actions #1

Updated by Ernesto Baschny about 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.

Actions #2

Updated by Mathias Schreiber almost 10 years ago

  • Status changed from Accepted to Closed

fixed

Actions #3

Updated by Markus Klein over 9 years ago

Real quotes will be allowed with #55759

Actions

Also available in: Atom PDF