Oscar Scholten pushed to branch release/3.0 at cms-community / 
hippo-essentials-components


Commits:
8ce71953 by Jasper Floor at 2016-09-16T12:49:21+02:00
ESSCOM-7 [backport 11.0] removed CDATA

(cherry picked from commit dfb3fe7da09f6df73d6d3f30b54a90757cf32d7f)

- - - - -
a409f222 by Bert Leunis at 2016-09-16T12:49:30+02:00
ESSCOM-7 [backport 11.0] trivial code update. updated license header.

(cherry picked from commit b676ea7c65a6356463bc2a826afa99c404ed95b8)

- - - - -


1 changed file:

- 
hst/src/main/java/org/onehippo/cms7/essentials/components/rest/adapters/HippoHtmlAdapter.java


Changes:

=====================================
hst/src/main/java/org/onehippo/cms7/essentials/components/rest/adapters/HippoHtmlAdapter.java
=====================================
--- 
a/hst/src/main/java/org/onehippo/cms7/essentials/components/rest/adapters/HippoHtmlAdapter.java
+++ 
b/hst/src/main/java/org/onehippo/cms7/essentials/components/rest/adapters/HippoHtmlAdapter.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014-2015 Hippo B.V. (http://www.onehippo.com)
+ * Copyright 2014-2016 Hippo B.V. (http://www.onehippo.com)
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -31,8 +31,7 @@ public class HippoHtmlAdapter extends XmlAdapter<String, 
HippoHtml> {
             return null;
         }
         final HstRequestContext context = RequestContextProvider.get();
-        final String rewrittenContent = new 
SimpleContentRewriter().rewrite(html.getContent(), html.getNode(), context);
-        return "<![CDATA[" + rewrittenContent + "]]>";
+        return new SimpleContentRewriter().rewrite(html.getContent(), 
html.getNode(), context);
     }
 
     @Override



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-essentials-components/compare/d53de57b87e4454f9e5aadb0917cbaeb8953c437...a409f222f6253c1c120c5d548da1d4f22189f798
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to