Class HTMLUtils

java.lang.Object
com.jbstrap.core.utils.HTMLUtils

public final class HTMLUtils extends Object
HTML utility class
Since:
4.0
Author:
JBStrap
  • Method Details

    • escapeString

      public static String escapeString(String str)
      Converts the specified Java string, so that it can be used by JavaScript
      Parameters:
      str - The Java String
      Returns:
      The JavaScript string
    • drawComponent

      public static String drawComponent(Component<?> component)
      Parameters:
      component - The component to be drawn
      Returns:
      The final HTML string necessary for drawing the component