public class JsonStringEscapeDirective extends Object implements freemarker.template.TemplateDirectiveModel
In other words, the content that is generated within this tag should be able to be enclosed in quotes within a JSON document without breaking strict JSON parsers. Note that this doesn't presently handle a wide variety of cases, just enough to properly escape basic html.
There are three types of replacements this performs:
Constructor and Description |
---|
JsonStringEscapeDirective() |
public JsonStringEscapeDirective()
public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
execute
in interface freemarker.template.TemplateDirectiveModel
freemarker.template.TemplateException
IOException
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.