Class RemoveFileSystemLinksMethod
java.lang.Object
ch.tocco.nice2.templating.impl.freemarker.methods.RemoveFileSystemLinksMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
public class RemoveFileSystemLinksMethod
extends Object
implements freemarker.template.TemplateMethodModelEx
removes any links from a html snippet that might crash wkhtmltopdf, i.e. relative and absolute file system links
Usage: `${removeFileSystemLinks('insert some html here')}`
-
Field Details
-
WEB_LINK_PATTERN
-
MAILTO_PATTERN
-
URL_PATTERN
-
-
Constructor Details
-
RemoveFileSystemLinksMethod
public RemoveFileSystemLinksMethod()
-
-
Method Details
-
exec
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModel
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModelEx
- Throws:
freemarker.template.TemplateModelException
-