Package com.axelor.common
Class HtmlUtils
java.lang.Object
com.axelor.common.HtmlUtils
This class provides some helper methods escaping, rendering, replacing HTML text
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HtmlUtils
public HtmlUtils()
-
-
Method Details
-
escape
Escapes the text. It is safe to use in an HTML context.- Parameters:
text
- the text to escape- Returns:
- the escaped HTML text, or
null
if the text isnull
-
escapeAttribute
Escapes the attribute value. It is safe to be use in an attribute value.- Parameters:
attribute
- the attribute to escape- Returns:
- the escaped attribute value, or
null
if the attribute value isnull
-