anchor.diff:                  </div>
               </div>
               </br>
  -            <textarea hidden="hidden" name="sp-template-name" id="sp-template-name"><%=templateName%></textarea>
  +            <textarea hidden="hidden" name="sp-template-name" id="sp-template-name"><%=Encode.forHtmlContent(templateName)%></textarea>
               <div class="buttonRow">
                   <input id="updateTemplate" type="button" class="button" value="<fmt:message key='button.update.service.provider.template'/>"
                          onclick="updateTemplateOnclick();"/>
  
positive.code: <%@ page import="org.wso2.carbon.utils.ServerConstants" %>
  <%@ page import="org.wso2.carbon.identity.application.mgt.ui.client.ApplicationManagementServiceClient" %>
  <%@ page import="org.wso2.carbon.identity.application.common.model.xsd.SpTemplate" %>
  
  <jsp:include page="../dialog/display_messages.jsp"/>
  <fmt:bundle
  
negative.code:                 <tr>
                      <td style="width:15%" class="leftCol-med labelField"><fmt:message key='config.application.template.name'/>:<span class="required">*</span></td>
                      <td>
                          <input id="template-name" name="template-name" type="text" value=<%=Encode.forHtmlAttribute(templateName)%>
                                  white-list-patterns="^[a-zA-Z0-9\s._-]*$" autofocus/>
                          <div class="sectionHelp">
                              <fmt:message key='help.name'/>
                          </div>
  