typo3: remove htmlspecialchars in header

If you have a content element in typo3 with a header value containing “special chars” like romanian “diacritics” the header will be rendered like sh… – because the “special chars” are transformed using the &#xxx;-syntax, after which the & is transformed into &amp;. The result looks like: &amp;#xxx;

To get rid of this write in the setup part of your template:lib.stdheader.10.setCurrent.htmlSpecialChars = 0