[TYPO3] Replacing a character during content rendering

Xavier Perseguers typo3 at perseguers.ch
Sat Mar 1 19:34:57 CET 2008


Hello,

I would like to replace all straight apostrophes (') with the ’ 
character in all my text and text w/image blocks. The reason is that the 
straight apostrophe is not good in a typesetting context.

I found a way using a hook on

$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-cached'][]

but I had to parse myself the whole HTML output and thus I cannot 
identify whether the content originated from a text block or not. The 
problem is that I still want straight apostrophes in my source code, 
when I use the source_highlighter plugin.

I think, it should be wise to hook instead in lib.parseFunc_RTE or 
lib.parseFunc but I could not find a way to hook there.

Any advice?

Thanks
Xavier Perseguers


More information about the TYPO3-english mailing list