Package org.apache.tapestry5
Class MarkupUtils
java.lang.Object
org.apache.tapestry5.MarkupUtils
Utility methods related to generating markup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Joins together several strings, sorting them alphabetically and separating them with spaces.static String
Joins together several strings, sorting them alphabetically and separating them with spaces.static String
Quotes the provided value as a JavaScript string literal.
-
Constructor Details
-
MarkupUtils
public MarkupUtils()
-
-
Method Details
-
quote
Quotes the provided value as a JavaScript string literal. The input value is surrounded by single quotes and any interior backslash, single or double quotes are escaped (a preceding backslash is added).- Parameters:
text
-- Returns:
- quoted text
-
join
Joins together several strings, sorting them alphabetically and separating them with spaces. This is often used when setting the CSS class attribute of an element. -
join
Joins together several strings, sorting them alphabetically and separating them with spaces. This is often used when setting the CSS class attribute of an element.
-