19 lines
521 B
Kotlin
19 lines
521 B
Kotlin
package net.h34t.filemure
|
|
|
|
import net.h34t.filemure.tpl.Frame
|
|
import net.h34t.filemure.tpl.Limbo
|
|
import net.h34t.filemure.tpl.NewDocumentForm
|
|
import org.apache.commons.text.StringEscapeUtils
|
|
import java.net.URLEncoder
|
|
|
|
class TemplateModifiers : Frame.Modifiers, Limbo.Modifiers, NewDocumentForm.Modifiers {
|
|
|
|
fun hashPrefix(arg: String): String {
|
|
return URLEncoder.encode(arg, Charsets.UTF_8)
|
|
}
|
|
|
|
override fun starPrefix(arg: String): String {
|
|
return StringEscapeUtils.escapeHtml4(arg)
|
|
}
|
|
|
|
}
|