fr.paris.lutece.plugins.calendar.web
Class HtmlUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.calendar.web.HtmlUtils

public class HtmlUtils
extends java.lang.Object

An Utility class to manipulate html code.


Constructor Summary
HtmlUtils()
           
 
Method Summary
static java.lang.String convertCR(java.lang.String strSource)
          Convert CR into HTML
static void fillEventTemplate(java.util.HashMap model, MultiAgendaEvent event, java.lang.String strDate)
          Fill a template with events info
static java.lang.String removeHtml(java.lang.String strSource)
          Remove the part of the string that contains HTML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlUtils

public HtmlUtils()
Method Detail

removeHtml

public static java.lang.String removeHtml(java.lang.String strSource)
Remove the part of the string that contains HTML

Parameters:
strSource - The source string
Returns:
the cleaned string

convertCR

public static java.lang.String convertCR(java.lang.String strSource)
Convert CR into HTML

Parameters:
strSource - The string to convert
Returns:
The converted string

fillEventTemplate

public static void fillEventTemplate(java.util.HashMap model,
                                     MultiAgendaEvent event,
                                     java.lang.String strDate)
Fill a template with events info

Parameters:
model - The model used to fill events
event - The event
strDate - The current date


Copyright © 2007 Mairie de Paris. All Rights Reserved.