| This TransformerFactory enables the use of two different escapers in one piece
of text. I started it to simplify the inclusion of a code snippet in html.
You can specify the tags between which you wish to escape your text, the
escaper to use and you can set an escaper for the rest of the text.
The tags default to <pre> and </pre>, the first escaper defaults to
'text/html' (which escapes &, <, >, " and leaves the linebreakes
untouched). The last escaper does by default nothing. But of course you can set
your own with the parameters 'starttag', 'closetag', 'escapecode' and 'escaperest'.
author: André van Toly since: MMBase 1.8.0 version: $Id: CodeSampleFactory.java,v 1.6 2008/02/03 17:33:56 nklasens Exp $ |