Click to See Complete Forum and Search --> : Render html syntax as normal text


SkyNarc
10-04-2006, 07:51 AM
Hi all,

I have a block of html syntax that I am trying to render as normal text on my webpage. I have tried using <pre> and <code> but that does not work. Is there anything else I can do so I dont need to escape all my html characters?

Here's the example I want to be able to read as regular text on my page:

<pre>
...
<span jwcid="@For" source="ognl:getResourceList()" value="ognl:curResource" converter="ognl:resourceConverter">
...
</span>
...
</pre>

The three dots ... display properly but my span tags are still being rendered as html tags?

Thanks

KDLA
10-04-2006, 08:33 AM
You need to convert the symbols to characters:
&lt;span jwcid=&quot;@For&quot; source=&quot;ognl:getResourceList()&quot; value=&quot;ognl:curResource&quot;
converter=&quot;ognl:resourceConverter&quot;&gt;

Tweak4
10-04-2006, 08:33 AM
Try replacing the "<" and ">" in your span tags with "&lt;" & "&gt;" respectively

EDIT: damn... KDLA beat me to it