Forum OpenACS Q&A: How to stop xowiki::Form rendering entered HTML literally

I have an xowiki::Form that contains a mixture of text fields and textarea fields. The textarea fields work as expected using the wym editor but I want to be able to enter literal HTML into the simple text field on occasions and am having trouble.

Here is an example of my field specification:

{pagetext_hdg01:text,label=Paragraph 1 Heading}

When I enter:

<span class="somesupplimentaryclass">Last Minute Mod</span>

in the field, I get exactly this output (literally) displayed on the page.

I cannot work out what settings to use for this field to get it to honour the markup and render "Last Minute Mod" with the style "somesupplimentaryclass" applied.

Guidance gratefully received.

Regards
Richard

Hi Rick, i guess, there is some markup in the line with "Last Minute Mod".

If you want to show always the same markup, put it into the template of the form (around @pagetext_hdg01@). if you want to render content without html escaping, add "show_raw_value=1" to the form field spec.

-gustaf

Gustav,

Thank you so much, I felt sure there would be a way but I couldn't find it.

The second option is the one I need because I just need to make a slight alteration to one instance of a form which is only needed once and therefore doesn't warrant a whole new xowiki::Form to achieve it.

All of the rest of my markup is done by the first method.

Many thanks
R.

Oh I see. Yes you're quite correct. OpenACS stripped that too!

<span class="oneoffadjustment">That which is to be adjusted.</span>

was what I meant!