Package com.jbstrap.core.utils
Class HTMLUtils
java.lang.Object
com.jbstrap.core.utils.HTMLUtils
HTML utility class
- Since:
- 4.0
- Author:
- JBStrap
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
drawComponent
(Component<?> component) static String
escapeString
(String str) Converts the specified Java string, so that it can be used by JavaScript
-
Method Details
-
escapeString
Converts the specified Java string, so that it can be used by JavaScript- Parameters:
str
- The Java String- Returns:
- The JavaScript string
-
drawComponent
- Parameters:
component
- The component to be drawn- Returns:
- The final HTML string necessary for drawing the component
-