public class AllowGtTemplate extends Template
By 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.
Constructor and Description |
---|
AllowGtTemplate() |
Modifier and Type | Method and Description |
---|---|
boolean |
init(RewriteContext hr)
Replace the "default" parser with our modified one.
|
public boolean init(RewriteContext hr)
init
in interface TemplateInterface
init
in class Template