Created
January 20, 2022 15:04
-
-
Save kitzberger/faf7d0924e832e615cdc44d1b7d73c27 to your computer and use it in GitHub Desktop.
Allow ­ and <br> in TYPO3 headlines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h2>{header -> f:format.html(parseFuncTSPath:'lib.parseFunc_header')}</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 ­ entities of RTE | |
| lib.parseFunc_RTE.nonTypoTagStdWrap.replacement.10.search = &shy; | |
| lib.parseFunc_RTE.nonTypoTagStdWrap.replacement.10.replace = ­ | |
| # Workaround to redecode htmlspecialchar'ed ­ entities of RTE inside ul, ol, table td, etc. | |
| lib.parseFunc.nonTypoTagStdWrap.replacement.10.search = &shy; | |
| lib.parseFunc.nonTypoTagStdWrap.replacement.10.replace = ­ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment