Unwanted <html><body> when rendering STX
Hi I use the StructuredText module in my Product to render some stx, and I want to stop it from surrounding the result in <html><body></body></html>. Does the module support this? My code atm is simply: return StructuredText.HTML(theRawText) My 2 options seem to be: 1) Manually search for and chop off the tags 2) Try to copy what CMFCore/utils/format_stx does, but this looks a bit tricky/overkill. TIA, Felix.
Felix Ulrich-Oltean wrote:
Hi
I use the StructuredText module in my Product to render some stx, and I want to stop it from surrounding the result in <html><body></body></html>. Does the module support this?
My code atm is simply:
return StructuredText.HTML(theRawText)
Just IIRC, but does return StructuredText.HTML(theRawText, header=0) do the trick? HTH, oliver
participants (2)
-
Felix Ulrich-Oltean -
Oliver Bleutgen