org.exoplatform.social.plugin.link
Class UILinkUtil

java.lang.Object
  extended by org.exoplatform.social.plugin.link.UILinkUtil

public final class UILinkUtil
extends Object

Utility class for link composer plugin.

Since:
Apr 13, 2011
Author:
hoatle (hoatlevan at gmail dot com)

Constructor Summary
UILinkUtil()
           
 
Method Summary
static String encodeURI(String input)
          Encode URI of text by UTF-8 Example: Input: https://google.com Output: https%3A%2F%2Fgoogle.com
static boolean isImageLink(String link)
          Checks if a provided link is am image link.
static String simpleEscapeHtml(String input)
          Simple escape HTML tags Example: Input: test Output: <a herf="abc.com">test</a>
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UILinkUtil

public UILinkUtil()
Method Detail

isImageLink

public static boolean isImageLink(String link)
Checks if a provided link is am image link.

Parameters:
link - the provided link
Returns:
true if the provided link is an image link, otherwise, false.

simpleEscapeHtml

public static String simpleEscapeHtml(String input)
Simple escape HTML tags Example: Input: test Output: <a herf="abc.com">test</a>

Parameters:
input - The text input
Returns:
The text after simple escape HTML
Since:
4.0.7

encodeURI

public static String encodeURI(String input)
Encode URI of text by UTF-8 Example: Input: https://google.com Output: https%3A%2F%2Fgoogle.com

Parameters:
input -
Returns:
The text encoded.
Since:
4.0.7


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.