Java com.liferay.portal.kernel.util HtmlUtil fields, constructors, methods, implement or subclass

Example usage for Java com.liferay.portal.kernel.util HtmlUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.liferay.portal.kernel.util HtmlUtil.

The text is from its open source code.

Constructor

Method

Stringescape(String text)
Escapes the text so that it is safe to use in an HTML context.
Stringescape(String text, int mode)
Escapes the input text as a hexadecimal value, based on the mode (type).
StringescapeAttribute(String attribute)
Escapes the attribute value so that it is safe to use as an attribute value.
StringescapeHREF(String href)
Escapes the HREF attribute so that it is safe to use as an HREF attribute.
StringescapeJS(String js)
Escapes the JavaScript value so that it is safe to use in a JavaScript context.
StringescapeURL(String url)
Escapes the URL value so that it is safe to use as a URL.
StringescapeXPathAttribute(String xPathAttribute)
StringextractText(String html)
Extracts the raw text from the HTML input, compressing its whitespace and removing all attributes, scripts, and styles.
HtmlgetHtml()
Stringrender(String html)
Renders the HTML content into text.
StringreplaceNewLine(String html)
Replaces all new lines or carriage returns with the
HTML tag.
voidsetHtml(Html html)
StringstripBetween(String text, String tag)
Strips all content delimited by the tag out of the text.
StringstripComments(String text)
Strips all XML comments out of the text.
StringstripHtml(String text)
Stringunescape(String text)