[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TYPO3] Replacing a character during content rendering



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
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english