I'm using jsp:include inside json-taglib's json:property element. The problem with this is that all HTML elements from included JSP page gets stripped at some point and only plain text remains. I have already stripped all newlines so the result shoud be valid JSON data.
How do I get full HTML returned by json-taglib?
Below is a snippet demonstrating the situation.
<%@ page language="java" %>
<%@ page pageEncoding="UTF-8" %>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://www.atg.com/taglibs/json" prefix="json" %>
<json:object>
<json:property name="id" value="${element.id}" />
<json:property name="html" escapeXml="false">
<jsp:include page="/templates/generate-component.jsp">
<jsp:param name="element_id" value="${element.id}" />
</jsp:include>
</json:property>
</json:object>