[TYPO3-dev] XML Export with Fluid
Bastian Waidelich
bastian at typo3.org
Thu Feb 23 21:54:12 CET 2012
Michel Georgy - 4eyes GmbH wrote:
Hi Michel,
> We provide an XML Export with Extbase/Fluid for our customer.
>
> Everything works fine, but the Exported XML file contains all the tabs and spaces which
> are used to format the Fluid template.
Right. It's the same with HTML (and any other format) of course.
Probably the easiest solution would be to clean up the output before
saving it to the cache / file system (for example with html tidy [1]).
If you want to use Fluid for that you should have a look at the so
called *interceptors* (see [2]).
We use them to apply htmlspecialchars() to dynamic output and in FLOW3
in order to rewrite resource paths [3].
HTH,
Bastian
[1] http://tidy.sourceforge.net/
[2]
http://git.typo3.org/FLOW3/Packages/TYPO3.Fluid.git?a=blob;f=Classes/View/AbstractTemplateView.php;h=05038d69ecbf4736462f75f6ddd51622097a4a19;hb=HEAD#l366
[3]
http://git.typo3.org/FLOW3/Packages/TYPO3.Fluid.git?a=blob;f=Classes/Core/Parser/Interceptor/Resource.php;h=df13d51bd019d5de99b7e0c3f4cc4b04ac115114;hb=HEAD
More information about the TYPO3-dev
mailing list