You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stefan Seifert <ss...@pro-vision.de> on 2001/05/16 10:22:53 UTC

ESQL get-string: HTML from Database field is encoded

(Cocoon 1.8.2)

I use Cocoon in a content management project and want to load a HTML
fragment from database using an XSP-File with ESQL and display this HTML
fragment in the resulting HTML page.

Unfortunately the HTML is encoded with &lt; etc. and shown as HTML
source in the result.

Using get-xml instead of get-string does not work, because the HTML
fragment is not nessecarily XML well-formed. Is there any possibility to
put the HTML fragment with an equivalent of a CDATA-Section in the
result of the XSP-Page?

Stefan

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: ESQL get-string: HTML from Database field is encoded

Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 16 May 2001, Stefan Seifert wrote:

> I use Cocoon in a content management project and want to load a HTML
> fragment from database using an XSP-File with ESQL and display this HTML
> fragment in the resulting HTML page.
>
> Unfortunately the HTML is encoded with &lt; etc. and shown as HTML
> source in the result.
>
> Using get-xml instead of get-string does not work, because the HTML
> fragment is not nessecarily XML well-formed. Is there any possibility to
> put the HTML fragment with an equivalent of a CDATA-Section in the
> result of the XSP-Page?

it would be possible to hook up jtidy with esql and write in support for
an esql:get-html tag. i've never had the need (or time) myself, but it's
an open suggestion.

- donald


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>