io.imunity.vaadin.endpoint.common.safe_html.HtmlConfigurableLabel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unity-server-vaadin-endpoint-common Show documentation
Show all versions of unity-server-vaadin-endpoint-common Show documentation
Common Vaadin endpoint components
The newest version!
/*
* Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package io.imunity.vaadin.endpoint.common.safe_html;
import pl.edu.icm.unity.engine.api.config.UnityServerConfiguration;
public class HtmlConfigurableLabel
{
public static String conditionallyEscape(String value)
{
boolean allowFullHtml = "true".equals(System.getProperty(UnityServerConfiguration.SYSTEM_ALLOW_FULL_HTML));
return allowFullHtml ? value : HtmlEscapers.simpleEscape(value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy