• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

On rare occasions I want to show the content of a TWiki variable literally - which fails if the TWiki variable contains HTML elements (as is the case with HTTP_EQUIV_ON_VIEW).

Right now I can do the following:

  • Prevent TWiki processing and HTML parsing by embedding in <verbatim>...</verbatim> (which will escape < and >)
  • Prevent TWiki processing, but allow HTML parsing by embedding in <literal>...</literal>
  • Allow TWiki processing, but hide from HTML by embedding in HTML comments (as is frequently done when setting variables)

I'd like to write things like the following:

   * Current value: HTTP_EQUIV_ON_VIEW = %ENCODE{"%HTTP_EQUIV_ON_VIEW%" type="html"}%
and get (simulated):
  • Current value: HTTP_EQUIV_ON_VIEW = <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/do/view/Bugs/WebRss" />

Ouch - my fault.

type="entity" is supposed to do the escaping I want. In this case it fails because the double quotes created when expanding HTTP_EQUIV_ON_VIEW confuse the argument parser of %ENCODE%. Discarding.

-- TWiki:Main.HaraldJoerg

ItemTemplate
Summary Need ENCODE type="html"
ReportedBy TWiki:Main.HaraldJoerg
Codebase 4.0.3
SVN Range Thu, 29 Jun 2006 build 10750
AppliesTo Engine
Component

Priority Enhancement
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-07-03 - HaraldJoerg
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback