/** HTML escape and store the site's full description. */ protected void escapeDescription() { m_htmlDescription = Web.escapeHtml(m_description); }
retvalBuf.append( Web.escapeJsQuoted(Web.escapeHtml(displayName)) );
/** HTML escape and store the site's short description. */ protected void escapeShortDescription() { m_htmlShortDescription = Web.escapeHtml(m_shortDescription); }
public String getTitle() throws ToolRenderException { return Web.escapeHtml(toolConfiguration.getTitle()); }
/** * Assigns a value from one map to another - applying an HMTL filter to the value * * destMap[destKey] = sourceMap[sourceKey]; * * @param destMap * The Map to add the key/value pair to. * @param destKey * The key to use in the destination map. * @param sourceMap * The Map to add the key/value pairs from * @param sourceKey * The key to use from the source map. * @return true if there were keys copied */ public static boolean copyHtml(Map destMap, String destKey, Map sourceMap, String sourceKey) { if ( destMap == null || sourceMap == null || sourceMap.isEmpty() ) return false; try { String s = (String) sourceMap.get(sourceKey); if ( s == null ) return false; destMap.put(destKey,Web.escapeHtml(s)); return true; } catch (Exception t) { // Not a string return false; } } }
protected String htmlContent(Event event) { return Web.encodeUrlsAsHtml(Web.escapeHtml(plainTextContent(event),true)); }
final String titleString = Web.escapeHtml(configuration.getTitle()); String toolUrl = ServerConfigurationService.getToolUrl() + "/" + Web.escapeUrl(configuration.getId()); sb.append("sakai_action=").append(Web.escapeHtml(sakaiAction));
public String getUserSpecificSiteTitle(Site site, boolean truncated, boolean escaped, List<String> siteProviders) { String retVal = SiteService.getUserSpecificSiteTitle( site, UserDirectoryService.getCurrentUser().getId(), siteProviders ); if( truncated ) { retVal = FormattedText.makeShortenedText( retVal, null, null, null ); } if( escaped ) { retVal = Web.escapeHtml( retVal ); } return retVal; }
public String getUserSpecificSiteTitle(Site site, boolean truncated, boolean escaped, List<String> siteProviders) { String retVal = SiteService.getUserSpecificSiteTitle( site, UserDirectoryService.getCurrentUser().getId(), siteProviders ); if( truncated ) { retVal = FormattedText.makeShortenedText( retVal, null, null, null ); } if( escaped ) { retVal = Web.escapeHtml( retVal ); } return retVal; }
public String getTitle() throws ToolRenderException { if ( bufferedException == null ) { try { renderResponse(); return Web.escapeHtml(PortletStateAccess.getPortletState(req, window.getId().getStringId()) .getTitle()); } catch(Exception e) { bufferedException = e; } } return bufferedException.toString(); }
String body = Web.escapeHtml(message.getBody());
m.put("shortDescription", Web.escapeHtml(shortDesc_trimmed));
m.put("shortDescription", Web.escapeHtml(shortDesc_trimmed));
m.put("ispopup", Boolean.valueOf(p.isPopUp())); m.put("pagePopupUrl", pagePopupUrl); m.put("pageTitle", Web.escapeHtml(p.getTitle())); m.put("jsPageTitle", Web.escapeJavascript(p.getTitle())); m.put("pageId", Web.escapeUrl(p.getId())); m.put("jsToolId", Web.escapeJavascript(placement.getId())); m.put("toolRegistryId", placement.getToolId()); m.put("toolTitle", Web.escapeHtml(placement.getTitle())); m.put("jsToolTitle", Web.escapeJavascript(placement.getTitle())); m.put("toolrefUrl", toolrefUrl);
String titleString = Web.escapeHtml(placement.getTitle()); String toolId = Web.escapeHtml(placement.getToolId());
String titleString = Web.escapeHtml(placement.getTitle()); String toolId = Web.escapeHtml(placement.getToolId());
rcontext.put("shortDescription", Web.escapeHtml(site.getShortDescription()));
rcontext.put("shortDescription", Web.escapeHtml(site.getShortDescription()));
rcontext.put("pageTitle", Web.escapeHtml(title)); rcontext.put("pageScriptPath", PortalUtils.getScriptPath()); rcontext.put("pageWebjarsPath", PortalUtils.getWebjarsPath());
rcontext.put("pageTitle", Web.escapeHtml(title)); rcontext.put("pageScriptPath", PortalUtils.getScriptPath()); rcontext.put("pageWebjarsPath", PortalUtils.getWebjarsPath());