98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
OFString *old = _CDATA;
_CDATA = [stringValue copy];
[old release];
}
- (OFString*)XMLString
{
/* FIXME: What to do about ]]>? */
return [OFString stringWithFormat: @"<![CDATA[%@]]>", _CDATA];
}
- (OFString*)XMLStringWithIndentation: (unsigned int)indentation
{
return [self XMLString];
}
|
|
>
>
>
|
>
>
>
>
|
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
OFString *old = _CDATA;
_CDATA = [stringValue copy];
[old release];
}
- (OFString*)XMLString
{
void *pool = objc_autoreleasePoolPush();
OFString *tmp = [_CDATA
stringByReplacingOccurrencesOfString: @"]]>"
withString: @"]]>]]><![CDATA["];
OFString *ret = [OFString stringWithFormat: @"<![CDATA[%@]]>", tmp];
[ret retain];
objc_autoreleasePoolPop(pool);
return [ret autorelease];
}
- (OFString*)XMLStringWithIndentation: (unsigned int)indentation
{
return [self XMLString];
}
|