001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.util;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     * @author Clarence Shen
020     * @author Harry Mark
021     * @author Samuel Kong
022     */
023    public interface Html {
024    
025            public String escape(String text);
026    
027            public String escape(String text, int mode);
028    
029            public String escapeAttribute(String attribute);
030    
031            public String escapeCSS(String css);
032    
033            public String escapeHREF(String href);
034    
035            public String escapeJS(String js);
036    
037            public String escapeURL(String url);
038    
039            public String extractText(String html);
040    
041            public String fromInputSafe(String text);
042    
043            public String replaceMsWordCharacters(String text);
044    
045            public String stripBetween(String text, String tag);
046    
047            public String stripComments(String text);
048    
049            public String stripHtml(String text);
050    
051            public String toInputSafe(String text);
052    
053            public String unescape(String text);
054    
055            public String wordBreak(String text, int columns);
056    
057    }