Skip to content

Instantly share code, notes, and snippets.

@kitzberger
Created January 20, 2022 15:04
Show Gist options
  • Select an option

  • Save kitzberger/faf7d0924e832e615cdc44d1b7d73c27 to your computer and use it in GitHub Desktop.

Select an option

Save kitzberger/faf7d0924e832e615cdc44d1b7d73c27 to your computer and use it in GitHub Desktop.
Allow &shy; and <br> in TYPO3 headlines
<h2>{header -> f:format.html(parseFuncTSPath:'lib.parseFunc_header')}</h2>
# Usage in fluid: {tt_content.header -> f:format.html(parseFuncTSPath:'lib.parseFunc_header')}
lib.parseFunc_header {
allowTags = br
denyTags = *
plainTextStdWrap.htmlSpecialChars = 1
plainTextStdWrap.htmlSpecialChars.preserveEntities = 1
}
# Usage in fluid: {page.nav_title -> f:format.html(parseFuncTSPath:'lib.parseFunc_sitemap')}
lib.parseFunc_sitemap {
nonTypoTagStdWrap {
stripHtml = 1
htmlSpecialChars = 1
htmlSpecialChars.preserveEntities = 1
}
}
# Workaround to redecode htmlspecialchar'ed &shy; entities of RTE
lib.parseFunc_RTE.nonTypoTagStdWrap.replacement.10.search = &amp;shy;
lib.parseFunc_RTE.nonTypoTagStdWrap.replacement.10.replace = &shy;
# Workaround to redecode htmlspecialchar'ed &shy; entities of RTE inside ul, ol, table td, etc.
lib.parseFunc.nonTypoTagStdWrap.replacement.10.search = &amp;shy;
lib.parseFunc.nonTypoTagStdWrap.replacement.10.replace = &shy;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment