@@ -279,16 +279,16 @@ CONSTRUCTOR
279279 then &, < and > (and " within attribute values) will be converted into
280280 the corresponding XML entity, although & will not be converted if it
281281 looks like it could be part of a valid entity (but see below). If the
282- value is 'unescaped', then the escaping will be turned off character-by-
283- character if the character in question is preceded by a backslash, or
284- for the entire string if it is supplied as a scalar reference. So, for
285- example,
282+ value is 'unescaped', then the escaping will be turned off
283+ character-by-character if the character in question is preceded by a
284+ backslash, or for the entire string if it is supplied as a scalar
285+ reference. So, for example,
286286
287287 use XML::Generator escape => 'always';
288288
289289 one('<'); # <one><</one>
290290 two('\&'); # <two>\&</two>
291- three(\'>'); # <three>> </three> (scalar refs always allowed)
291+ three(\'<f >'); # <three><f> </three> (scalar refs always allowed)
292292 four('<'); # <four><</four> (looks like an entity)
293293 five('"'); # <five>"</five> (looks like an entity)
294294
@@ -298,7 +298,7 @@ CONSTRUCTOR
298298
299299 one('<'); # <one><</one>
300300 two('\&'); # <two>&</two>
301- three(\'>'); # <three>></three> (aiee! )
301+ three(\'<f >');# <three><f ></three> (scalar refs always allowed )
302302 four('<'); # <four>&lt;</four> (no special case for entities)
303303
304304 By default, high-bit data will be passed through unmodified, so that
0 commit comments