表格中的 <link> 和 <div> 不再起作用

<link> and <div> in tables does not work anymore

我从 TYPO3 6.2.14 更新到 6.2.17。

到目前为止,我在表中使用 DIV 和 LINK,例如

<div style="width:300px">chemistry</div>|Mr. X
<link 188>physics</link>|Mrs. Y

这不再有效,我得到以下输出

<table class="contenttable contenttable-0">
    <tr class="tr-even tr-0">
        <td class="td-0">&lt;div style=&quot;width:300px&quot;&gt;chemistry&lt;/div&gt;</td>
        <td class="td-last td-1">Mr. X</td>
    </tr>
    <tr class="tr-odd tr-1">
        <td class="td-0">physics</td>
        <td class="td-last td-1">Mrs. Y</td>
    </tr>
</table>

<link>不再被替换,<div>是"wrapped"

我怎样才能得到旧的行为?

Note: The following is a hack. It undoes a change that was made for a (security) reason. I do not know the security implications. It would be preferable to find a way that doesn't require hacking the core.

我没有安装 Typo3 运行 所以我不能肯定地说,但这 可能 是导致新行为的变化:

[SECURITY] Replace parseFunc with htmlspecialchars in element "table" /sysext/css_styled_content/static/v4.5/setup.txt https://git.typo3.org/Packages/TYPO3.CMS.git/commit/e737a34

-       20.innerStdWrap.parseFunc = < lib.parseFunc
+       20.innerStdWrap.htmlSpecialChars = 1

您可以手动将其改回 innerStdWrap.parseFunc = < lib.parseFunc

我将 Pekka 的回答扩展为 "non-hacking" 解决方案

下面的打字错误修复了这个问题

tt_content.table{
    20.innerStdWrap.parseFunc =< lib.parseFunc
    20.innerStdWrap.htmlSpecialChars >
}