Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.5.5, 6.0.0-beta1
-
None
Description
The current behavior of the postProcess-method causes double CDATA-comments in the markup, if a single whitespace appears, e.g: /* <![CDATA[ */
Instead of searching for CDATA-comments in the markup-string, a regex should match all possible occurrences.
Someting like:
...
String text = body.toString().trim();
if (!text.matches(".<!\\[CDATA
[."))
...