File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
src/main/java/cz/jiripinkas/jsitemapgenerator Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,17 @@ public RssItemBuilder title(String title) {
318
318
return this ;
319
319
}
320
320
321
+ /**
322
+ * Sets Title surrounded by CDATA
323
+ *
324
+ * @param title Title
325
+ * @return this
326
+ */
327
+ public RssItemBuilder titleCdata (String title ) {
328
+ webPage .setName ("<![CDATA[ " + title + " ]]>" );
329
+ return this ;
330
+ }
331
+
321
332
/**
322
333
* Sets Description
323
334
*
@@ -329,6 +340,19 @@ public RssItemBuilder description(String description) {
329
340
return this ;
330
341
}
331
342
343
+
344
+ /**
345
+ * Sets Description surrounded by CDATA
346
+ *
347
+ * @param description Description
348
+ * @return this
349
+ */
350
+ public RssItemBuilder descriptionCdata (String description ) {
351
+ webPage .setShortDescription ("<![CDATA[ " + description + " ]]>" );
352
+ return this ;
353
+ }
354
+
355
+
332
356
/**
333
357
* Sets Name
334
358
*
You can’t perform that action at this time.
0 commit comments