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

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

public final class HtmlUtils
extends Object

An Utility class to manipulate html code.


Method Summary
static String convertCR(String strSource)
          Convert CR into HTML
static void fillEventTemplate(Map<String,Object> model, MultiAgendaEvent event, String strDate)
          Fill a template with events info
static String removeHtml(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
 

Method Detail

removeHtml

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

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

convertCR

public static String convertCR(String strSource)
Convert CR into HTML

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

fillEventTemplate

public static void fillEventTemplate(Map<String,Object> model,
                                     MultiAgendaEvent event,
                                     String strDate)
Fill a template with events info

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


Copyright © 2014 Mairie de Paris. All Rights Reserved.