Re: [zope-chinese] ÓйØpage temp lateµÄ¼¸¸öÎÊÌ⣬
"leslie" <[email protected]>
| Newsgroups | gmane.comp.web.zope.chinese |
|---|---|
| Message-ID | <[email protected]> |
oh!very clearly! thanks Bjorn. ----- Original Message ----- From: Bjorn Stabell To: [email protected] Sent: Monday, May 17, 2004 2:23 PM Subject: RE: [zope-chinese] ÓйØpage templateµÄ¼¸¸öÎÊÌ⣬ If you don't use "structure" then all HTML will be escaped, e.g., < will be >, when it is inserted into the page. So if your attribute/variable contains HTML code and you want to pass it through to the browser without having it be escaped, you have to use "structure". If you don't use structure, then people will see the HTML code (since it has been escaped) instead of the rendered HTML. ---------------------------------------------------------------------------- From: [email protected] [mailto:[email protected]] On Behalf Of leslie Sent: Monday, May 17, 2004 11:25 To: [email protected] Subject: [zope-chinese] 有关page template的几个问题, <p tal:content="structure here/getStory">marked <b>up</b>content goes here.</p> 问题:在page Template中structure的作用? 在AppendixC里 这样注解: structure keyword passes the replacement text through unchanged, allowing HTML/XML markup to be inserted. This can break your page if the text contains unanticipated markup (eg. text submitted via a web form 不是很明白,请大虾们给于指导,thx; ------------------------------------------------------------------------------ _______________________________________________ zope-chinese list [email protected] http://zope.cn/mailman/listinfo/zope-chinese _______________________________________________ zope-chinese list [email protected] http://zope.cn/mailman/listinfo/zope-chinese