com.mitchellbosecke.pebble.extension.escaper.SafeString Maven / Gradle / Ivy
package com.mitchellbosecke.pebble.extension.escaper;
/**
* Wrap a string in this to mark the string as safe to ignore by the Escape extension.
*
*
* Warning: The EscaperExtension will never escape a string that is wrapped with this class.
*
*/
public class SafeString {
private final String content;
public SafeString(String content) {
this.content = content;
}
@Override
public String toString() {
return content;
}
@Override
public boolean equals(Object o) {
return o instanceof SafeString && this.content.equals(((SafeString) o).content);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy