Package sunlabs.brazil.template
Class AllowGtTemplate
- java.lang.Object
-
- sunlabs.brazil.template.Template
-
- sunlabs.brazil.template.AllowGtTemplate
-
- All Implemented Interfaces:
TemplateInterface
public class AllowGtTemplate extends Template
Template that changes the behavior of the HTML/XML parser to allow unescaped >'s inside of entity attribute values. On the down side, it doesn't deal with unmatched "'s gracefullyBy default, the LexML parser does not allow a > inside of an entity body. The parser allows applications to provide ways of allowing embedded >'s, based on whatever syntax they like, This example will ignore a > (as the end of the entity) if inside a quoted attribute value.
No new markup is supported; the behavior of the HTML/XML parsing is altered for the duration of the page. This template is useful primarily to demonstrate how to change the parser token processing.
- Version:
- %W
- Author:
- Stephen Uhler
-
-
Constructor Summary
Constructors Constructor Description AllowGtTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
init(RewriteContext hr)
Replace the "default" parser with our modified one.
-
-
-
Method Detail
-
init
public boolean init(RewriteContext hr)
Replace the "default" parser with our modified one.- Specified by:
init
in interfaceTemplateInterface
- Overrides:
init
in classTemplate
-
-